Skip to main content

HSPSMS API Integration

Project description

HSP SMS API

API Integration of HSPSMS

Contributors: WE'RE LOOKING FOR SOMEONE WHO CAN CONTRIBUTE IN DOCS

  • Civil Machines Technologies Private Limited: For providing me platform and funds for research work. This project is hosted currently with CMT only.
  • Himanshu Shankar: Himanshu Shankar has initiated this project and worked on this project to collect useful functions and classes that are being used in various projects.

Installation

  • Download and Install via pip
pip install hspsms

or
Download and Install via easy_install

easy_install hspsms

Send SMS

Following is a simple example

from hspsms import HSPConnector

hspconn = HSPConnector(username="", apikey="", sender="", smstype="")
hspconn.send_sms(recipient=[], message="", sendername="", smstype="", scheduled="")
Using with Django
Using django-sendsms
  • Install django-sendsms: pip install django-sendsms

  • Specify configuration for HSP API in settings.py

HSPSMS = {
    "USER": "",
    "APIKEY": "",
    "SENDER": "",
    "DEFAULT_SMSTYPE": ""
}
  • Specify default django-sendsms backend in settings.py
SENDSMS_BACKEND = 'hspsms.backends.DjangoSendSMSBackend'
Using with DRF Addons
  • Install drfaddons: pip install drfaddons
  • DRF Addons use django-sendsms to send sms. Follow steps for django-sendsms.
  • Use send_message function of drfaddons
from drfaddons.utils import send_message

send_message(message="message", subject="Fallback Email Subject", "recip": [...mobile_numbers...],
             "recip_email": [...respective_fallback_email_addresses...],
             "html_message": "fallback_html_message")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for hspsms, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size hspsms-0.0.3-py3-none-any.whl (16.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size hspsms-0.0.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page