No project description provided
Project description
Mobizon Client
Ссылка на официальную документацию
Примеры:
Асинхронный клиент
import asyncio
from mobizon_client import AsyncMobizonClient
async def main():
url = 'https://api.mobizon.kz'
api_key = 'xisNSPPFj05WTVyH5oALU86VVuH7SocEUiitN0Og'
client = AsyncMobizonClient(url=url, api_key=api_key)
result = await client.send_message(recipient='77071234567', text='Test message', sender_signature=None)
await asyncio.sleep(3)
result = await client.get_message_status([result.message_id])
assert result[0].status == 'DELIVRD'
await client.close()
if __name__ == '__main__':
asyncio.run(main())
Синхронный клиент
from time import sleep
from mobizon_client import MobizonClient
def main():
url = 'https://api.mobizon.kz'
api_key = 'xisNSPPFj05WTVyH5oALU86VVuH7SocEUiitN0Og'
client = MobizonClient(url=url, api_key=api_key)
result = client.send_message(recipient='77071234567', text='Test message', sender_signature=None)
sleep(3)
result = client.get_message_status([result.message_id])
assert result[0].status == 'DELIVRD'
client.close()
if __name__ == '__main__':
main()
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
mobizon_client-0.1.2.tar.gz
(3.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mobizon_client-0.1.2.tar.gz.
File metadata
- Download URL: mobizon_client-0.1.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13c91e8d4c0ac296256a7230725f395c58283f87e4152eff9689623b76a921fc
|
|
| MD5 |
97909be69d790d3b9c6231d51ed8e83a
|
|
| BLAKE2b-256 |
546e76b1800fb63b21f2e3472cc4b0cb96175427eba7fa1edbdf46184ceddb7c
|
File details
Details for the file mobizon_client-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mobizon_client-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.6 Darwin/22.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6e2d7fb0a26b72ad03391919db92f878bb244713e5c1818ca8eb92a9519587f
|
|
| MD5 |
e7f1ec47640baf1b381b028aa6075351
|
|
| BLAKE2b-256 |
9900e66597785ce97a43e47fbaa5ca2a27c1d86dd5257e1b8fc447ce788e14d2
|