Tool for easy working with SigmaSMS API
Project description
sigmasms
Module provides an interface for https://sigmasms.ru/api/http/.
Usage
from sigmasms import AsyncClient
# instantiate client
client = AsyncClient(username='login', password='password', sender='MessageSender')
# authorize
await client.auth()
print(client.token)
# send message
resp = await client.send_message('TestSender', '+79999999999', 'text', 'sms')
print(resp)
# check message status
msg_id = resp['id']
status = await client.check_status(msg_id)
print(status)
# check balance
balance = await client.get_balance()
print(balance)
# close client
await client.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sigmasms-1.2.0.tar.gz
(2.2 kB
view hashes)