(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 api_id or login and 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
scend = 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
scend = await client.send_sms(
recipients=['79991398805', '79956896018'],
messages=["If i'm asking for help", "it's only because"]
)
call = await client.callcheck('79991398805')
print(call.code == input("Last 4 digits of incoming call number: "))
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.2.1.tar.gz
(11.9 kB
view details)
Built Distribution
aiosmsru-0.2.1-py3-none-any.whl
(18.3 kB
view details)
File details
Details for the file aiosmsru-0.2.1.tar.gz
.
File metadata
- Download URL: aiosmsru-0.2.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a610cf30a3c83b42d1d0de904d24d754b4ea037fd6950580f7564e0464f17104 |
|
MD5 | 60162c8b1e7131cf89371ba325cdd0bb |
|
BLAKE2b-256 | 791e4087f2fe3eecd0a0ad245dfcb97c54bd422583a37b0ffc8c7f49e64f11e3 |
File details
Details for the file aiosmsru-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: aiosmsru-0.2.1-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a50e3128b0cf3136ae931a5b012e7afec50cc9515f3b4628c53167920a65a382 |
|
MD5 | 9d39d7259add54ef838049ab9e3937ac |
|
BLAKE2b-256 | 2440313c7106ab43b77112f87d153854bd9a3c00dbd5a55f3530044ca6310e44 |