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.

Source Distribution

skylinesms-1.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file skylinesms-1.1.tar.gz.

File metadata

  • Download URL: skylinesms-1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for skylinesms-1.1.tar.gz
Algorithm Hash digest
SHA256 421e4136a079b4daf3f523f9c78475f0bc8c157968ebe6799bb8dfcb353900b3
MD5 77b1c70bd4f8bd2aebab25fd274196ab
BLAKE2b-256 1937c470729f2cb0f65c10bbf42c730b553f7a373fcfe0f652ee783ef47381af

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