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.

Source Distribution

pysmsru-0.1.7.tar.gz (3.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page