Skip to main content

send sms with sms.ru service.

Project description

Default API ID are read from the files:
Linux: $HOME/.smssendrc
Windows: %USERPROFILE%/.smssendrc

Example usage:

from pysmsru import SMSRU
smsru = SMSRU(
api_id='youapiid' - or set in .smssendrc
debug=True|None - Print debug messages
sendername='sender name' - Sender name (optional)
time=10 - Send time in UNIX TIME format (optional)
translit=True|None|False - Convert message to translit
http_timeout=10|None - Timeout for http connection (optional, default is 10)
)
smsru.send_one(phone_to='79121234567', message='Hello World!')
smsru.send_scope(phones_to=['79120123456', '79120012345'], message='Hello World!')

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 pysmsru, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size pysmsru-0.1.7.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page