Skip to main content

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


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)

Uploaded Source

Built Distribution

sigmasms-1.2.0-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

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