a oursms Library in python
Project description
oursms py:
a oursms Library in python
Installation:
Get the project useing pip
pip3 install oursms_py
Usage/Examples:
First you must import the lib
from oursms_py import *
then you create a client with your api credentials
client = Client(<USER-ID>, <API-KEY>)
Then you can send messages as follows
Normal Message:
msg=client.send_msg(<MOBILE-NUMBER, <MESSAGE-TEXT>)
if type(msg)==nan:
print("cant send")
#store message id to check status later if you want
OTP Message:
Here you send the otp as an integer and the api takes care of appending it to a message body
msg=client.send_otp(<MOBILE-NUMBER, <OTP_NUMBER>)
if type(msg)==nan:
print("cant send")
Message Status:
messageStatus = client.msg_status(<MESSAGE-ID>)
#This json List typically contains only one element
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
oursms_py-0.9.tar.gz
(14.6 kB
view details)
File details
Details for the file oursms_py-0.9.tar.gz.
File metadata
- Download URL: oursms_py-0.9.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60860a5de52ef4294ecb22967837d488bac0cfa6384eeb5847f6252524dd1673
|
|
| MD5 |
74592eba108dc7632671ff39572dbd94
|
|
| BLAKE2b-256 |
7312d9eb1b065dc6b70cf55ec63e569db63198cbf06bebada4a5585b12d95d92
|