Skip to content

Latest commit

 

History

History
34 lines (17 loc) · 703 Bytes

File metadata and controls

34 lines (17 loc) · 703 Bytes

python-smscru

Python interface and cli for smsc.ru api

Installation:

python setup.py install

API usage:

from pysmscru import SMSC

smsc = SMSC(login=LOGIN, password=PASSWORD, sender=DEFAULT_SENDER)

result = smsc.send_sms(['79169999999',], "Hello, world!")

print result

CLI usage:

Copy smscru.conf.example to /etc/smscru.conf and set your login and password.

$ smscru msg 79169999999 "Hello, world\!" --config=/etc/smscru.conf 

Build Status