Skip to main content

Python package to easy integration with NextSms API for bulksms

Project description

nextsms

Python Package to easy the integration with nextsms SMS Services

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;

Sending SMS with nextsms

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 .!!!

Issues

Encountered issues while using the package, raise an issue and then we gonna work to fix it as soon as it takes or you can email directly at isaackeinstein (at) gmail.com

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

nextsms-0.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page