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 details)

Uploaded Source

File details

Details for the file pysmsru-0.1.7.tar.gz.

File metadata

  • Download URL: pysmsru-0.1.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pysmsru-0.1.7.tar.gz
Algorithm Hash digest
SHA256 0555996ec7aea0ff11554cdefb2673e00120ee43b3a3e58cf03fbea4091412d6
MD5 1d570d69d57d1cb487fa90451a6180c5
BLAKE2b-256 7e62c304ec745709adeb85b6941887bc17cdae1e3d7de8aa1a793bf5fc08c2e7

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