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
CMTonly. - 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 APIinsettings.py
HSPSMS = {
"USER": "",
"APIKEY": "",
"SENDER": "",
"DEFAULT_SMSTYPE": ""
}
- Specify default
django-sendsmsbackend insettings.py
SENDSMS_BACKEND = 'hspsms.backends.DjangoSendSMSBackend'
Using with DRF Addons
- Install
drfaddons:pip install drfaddons DRF Addonsusedjango-sendsmsto send sms. Follow steps fordjango-sendsms.- Use
send_messagefunction ofdrfaddons
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hspsms-0.0.3.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
hspsms-0.0.3-py3-none-any.whl
(16.4 kB
view details)
File details
Details for the file hspsms-0.0.3.tar.gz.
File metadata
- Download URL: hspsms-0.0.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d88f2a626492fab168cf26b547f36e9e50defe5631308f95476de5e117a587
|
|
| MD5 |
f5ee04bd09a673b2671278beb7a93202
|
|
| BLAKE2b-256 |
98bebe8d636fe166e0b8455aa340fac513b2b832b09c1ea8272130bb62ce9132
|
File details
Details for the file hspsms-0.0.3-py3-none-any.whl.
File metadata
- Download URL: hspsms-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d5d7d83d5da0bd8771b450588b275995c465c4052da4441c9f8e266ceede386
|
|
| MD5 |
e1256e327a0195c9a3ef13d942615ffd
|
|
| BLAKE2b-256 |
232baa63e36b46ef7b576670b7fa938e603d6d00d77074edd65bc0a259023d59
|