Skip to main content

Python SDK for Sparrow SMS API.

Project description

********************
Installation is Easy
********************
/**

Recommendation to use Virtual Environment

**/


1 ) Download from::
http://scm.sparrowsms.com/sparrow/sparrowsdk.git

2) cd SparrowSDK
OR
sparrowsdk

3) Installing in Virtual Environment
$: mkvirtualenv sparrow
(sparrow)$:python setup.py install
else
$:python setup.py install

Note :: You may require root access if installing in system

Sparrow Python SDK

This client library is designed to support the Sparrow sms Api and the official SparrowSmsSDK, which is the canonical way to implement Sparrow sms Outgoing api. You can read more about the API by accessing its official documentation.

Send SMS:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_queue = pushclient.enqueue(destination='destination list, tuple or string seperated by commas', message='message')
push_resp = pushclient.send()

*******************************

Simulate Send SMS:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_queue = pushclient.enqueue(destination='destination list, tuple or string seperated by commas', message='message')
push_resp = pushclient.simulate()

*******************************

Check Credit Status:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_resp = pushclient.credit_status()

*******************************

Request for Credit Topup:
*******************************
from sparrow import PushClient
pushclient = PushClient(client_id='client_id', username='username', password='password')
push_resp = pushclient.topup(amount='credit_amount')

*******************************

Having trouble with Pages? we’ll help you sort it out. developers@sparrowsms.com

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

SparrowSDK-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file SparrowSDK-1.0.1.tar.gz.

File metadata

  • Download URL: SparrowSDK-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for SparrowSDK-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a78f2d065b24690448db505f4a7d8dfc23896129a8240197b0e56826af78fc46
MD5 cf295cb0234ff71d9d7ee62a4641b593
BLAKE2b-256 a0ebbab2d9caff6ba6ffac0cbdb1cff23b42f4937f848a71ded3bc7319ab5fd2

See more details on using hashes here.

Supported by

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