Skip to main content

A module to send sms using the Skyline SMS REST apis, www.skylinesms.com

Project description

Python module for sending sms with Skylinesms
----------------------------------------

Installation
~~~~~~~~~~~~

.. code:: bash

pip install skylinesms

Usage example
~~~~~~~~~~~~~

.. code:: python

import time
from skylinesms import SkylineSms

number = '256700123456'
message = 'Hello from Skyline!'

client = SkylineSms(your_api_key)

print("Sending '%s' to %s" % (message, number))
response = client.send_message(number, message)
message_id = response['reference']

response = client.check_status(message_id)
while response['delivery'] != 'Delivered':
print(response['status'])
time.sleep(1)
response = client.check_status(message_id)
print(response['status'])

.. note::

You will need a Skyline sms account for getting your api key and secret. Visit www.skylinesms.com to get started.

Using as command line script
~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: bash

./skylinesms.py
usage: skylinesms.py <application key> send <number> <message> <from_number>
skylinesms.py <application key> status <message_id>
skylinesms.py <application key> balance

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for skylinesms, version 1.1
Filename, size File type Python version Upload date Hashes
Filename, size skylinesms-1.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page