Python package to easy integration with NextSms API for bulksms
Project description
nextsms
Python Package to easy the integration with nextsms SMS Gateway
Getting started
In order to use this package you need to have the NextSMS Account, If you don't have one please take a look at NextSMS, and get your username and password we gonna use them down below;
Install the libary from pip or directly
pip install nextsms
Installing directly from github
Clone this repository or Download a zip of the package and then do this;
git clone https://github.com/Kalebu/nextsms
cd nextsms
nextsms -> python setup.py install
Here is an example on how to send an SMS with this package;
>> import nextsms
>> sender = nextsms('your username', 'your password')
>> sender.sendsms(message='hello', recipients=['25575XXXXX','25565XXXX'], sender_id="NEXTSMS")
Bulky ?
NextSms allows you to predefine all message you would like to send with variety of sender IDs and does the rest on how to successful send to all.
Here an Example how you would do that with this package
>> import nextsms
>> sender = nextsms('KalebuJordan', 'kalebu@opensource')
>> messages = [
{'from':'NEXTSMS', 'to':'255757294146', 'text':'hello'},
{'from':'NEXTSMS', 'to':'255754205561', 'text':'hello'}]
>> sender.send_bulk(messages)
Environment
By default as you can create a nextsms instance it configure the environment to use production urls, If you wanna do on test sandbox here how;
>> import nextsms
>> sender = nextsms('KalebuJordan', 'kalebu@opensource')
>> sender.sandbox = True
Wanna Contribute ?
Just
- Fork it
- Create a new branch
- Do your changes
- Make a Pull request
- You're merged congrats .!!!
Give it a star
Was this useful to you ? Cool then give it a big star !
Connect with me
I use a lot of twitter , let's connect on twitter .
Issues
Encountered issues while using the package, raise an issue and then we gonna work to fix it as soon as it takes
More features coming soon
All the Credits to kalebu
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nextsms-0.4.tar.gz
.
File metadata
- Download URL: nextsms-0.4.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6e3ba5540b7c63ee6aea66cee9468cec7b8364439f5e3c683e39905b76a6953 |
|
MD5 | 8b230a7abb1d24a831438ca9b06e77c2 |
|
BLAKE2b-256 | ff8582160b9a180857cf4e6c5cf1d16939c2529570a36187da5f76dc28bc2017 |
File details
Details for the file nextsms-0.4-py3-none-any.whl
.
File metadata
- Download URL: nextsms-0.4-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e389d8e2bfedb631ac6ad0059c81edd67049a35418e11b97f9d7c634a6baee83 |
|
MD5 | 983dd93bada3fe1f9a4843ed597abef8 |
|
BLAKE2b-256 | 829d486ea7ee2a8b906f17c4ed536050c45b26b59606ab09ad4bc7dd1139f503 |