smsc

SMSC.ru HTTP API Library.


Keywords
smsc, sms, api-client, python3, rest, sms-gateway
License
MIT
Install
pip install smsc==0.1.1

Documentation

SMSC

Documentation Status https://travis-ci.org/Otetz/smsc.svg?branch=master https://coveralls.io/repos/github/Otetz/smsc/badge.svg?branch=master

SMSC.ru HTTP API Library.

Installation

Install smsc package from PyPI:

$ pip install smsc

Getting started

Basic usage sample:

>>> from smsc.messages import SMSMessage
>>> from smsc.api import SMSC
>>> client = SMSC(login='alexey', password='psw')
>>> res = client.send(to='79999999999', message=SMSMessage(text='Hello, World!'))
>>> res.count
1
>>> res.cost
1.44

Documentation

Documentation is available at Read the Docs.

Links