(A)sync client for sms.ru with pydantic responses
Project description
🚧 aioSMSru
- Send SMS
- Check SMS status
- Get SMS cost
- Get balance
- Get limit
- Get free limit
- Get my senders
- Check login/password
- Add to stoplist
- Remove from stoplist
- Get stoplist
- Add callback
- Remove callback
- Get callbacks
- Callcheck
🧑💻 How to use
I gave an example for an async client, but sync is no different, you just don't need to use await. Get satisfaction 😌
from smsru import AioSMSru, SMSru
client = AioSMSru("app_id")
async def main():
print(await client.sms_cost("79991398805", "I'm in serious shit"))
# 79991398805 and 79956896018 <- I feel totally lost
sensed = await client.send_sms(
recipients=['79991398805', '79956896018'],
messages="I feel totally lost"
)
print(await client.check_sms([m_id for m_id in sensed.sms.keys()]))
# 79991398805 <- If i'm asking for help
# 79956896018 <- it's only because
sensed = await client.send_sms(
recipients=['79991398805', '79956896018'],
messages=["If i'm asking for help", "it's only because"]
)
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
aiosmsru-0.1.1a1.tar.gz
(10.5 kB
view hashes)
Built Distribution
aiosmsru-0.1.1a1-py3-none-any.whl
(14.6 kB
view hashes)
Close
Hashes for aiosmsru-0.1.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1afed3c2757673b245ea871966a369f9c72e977b0012224f38b7bd15929098a |
|
MD5 | d8150776aab4c6e9e36e895e6f2ba7fd |
|
BLAKE2b-256 | 529472d7cf7f801b6dbc7f6e735dbaa30f43d723759a640d462f2e34eb456907 |