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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sigmasms-1.2.0.tar.gz.

File metadata

  • Download URL: sigmasms-1.2.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for sigmasms-1.2.0.tar.gz
Algorithm Hash digest
SHA256 d9e6981e3544b3458d791eae567d73a6c1b3a8dba20da5ec5f0e09cba1373067
MD5 d6814cef8d23ec2406b8acb4c6db08b3
BLAKE2b-256 5cbe0cc694df5b4b4d7e58bb0b03b9b3776774baf77bbaf66a094bad0b7e3967

See more details on using hashes here.

File details

Details for the file sigmasms-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: sigmasms-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for sigmasms-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 626706a80982960739736558fd67e85e6f3ff14586ada92655663e82bd77f445
MD5 fee110afa0758646ff53fa6b2a111a6d
BLAKE2b-256 d5b5cdc28a05ba53a0e8cc61582e22db80a6cb8290b6842a7c76bc487558f0e7

See more details on using hashes here.

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