https://github.com/nextsms/python-client
Python Package to easy the integration with nextsms SMS Gateway
https://github.com/nextsms/python-client
nextsms nextsms-python-client nextsms-sms-gateway python-nextsms python-tanzania sms sms-api sms-python-package tanzania
Last synced: 7 days ago
JSON representation
Python Package to easy the integration with nextsms SMS Gateway
- Host: GitHub
- URL: https://github.com/nextsms/python-client
- Owner: nextsms
- License: mit
- Created: 2021-02-15T08:59:19.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-19T20:04:22.000Z (over 4 years ago)
- Last Synced: 2023-03-09T08:51:24.904Z (almost 3 years ago)
- Topics: nextsms, nextsms-python-client, nextsms-sms-gateway, python-nextsms, python-tanzania, sms, sms-api, sms-python-package, tanzania
- Language: Python
- Homepage: https://nextsms.github.io/python-client/
- Size: 23.4 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# [Nextsms Python Client](https://pypi.org/project/nextsms)
[](https://pepy.tech/project/nextsms)
[](https://pepy.tech/project/nextsms)
[](https://pepy.tech/project/nextsms)
Python Package to easy the integration with nextsms SMS Gateway
[](https://www.patreon.com/kalebujordan)
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](https://nextsms.co.tz), and get your *username* and *password* we gonna use them down below;
Install the libary from pip or directly
```bash
pip install nextsms
```
Installing directly from github
Clone this repository or Download a zip of the package and then do this;
```bash
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;
```python
>> 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
```python
>> 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;
```python
>> 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](twitter.com/j_kalebu) .
Issues
------
Encountered issues while using the package, raise an issue and then we gonna work to fix it as soon as it takes
```bash
More features coming soon
```
All the Credits to [kalebu](github.com/kalebu)