You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

SparrowSDK

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SparrowSDK

Python SDK for Sparrow SMS API.

1.0.1
pipPyPI
Maintainers
2

Installation is Easy

/**

Recommendation to use Virtual Environment

**/

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

  • cd SparrowSDK OR sparrowsdk

  • 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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts