Package for eskiz.uz/sms
Project description
eskiz-sms
eskiz-sms package for eskiz.uz/sms
:warning: Please use the latest version. In previous versions, there are a lot of mistakes, bugs
Installation
pip install eskiz_sms
Quickstart
from eskiz_sms import EskizSMS
email = "your_email@mail.com"
password = "your_password"
eskiz = EskizSMS(email=email, password=password)
eskiz.send_sms('998991234567', 'message', from_whom='4546', callback_url=None)
Using pre-saved token
from eskiz_sms import EskizSMS
your_saved_token = 'eySomething9320'
eskiz = EskizSMS('email', 'password')
eskiz.token.set(your_saved_token)
eskiz.send_sms('998901234567', message='message')
Saving token to env file
If you set save_token=True
it will save the token to env file
from eskiz_sms import EskizSMS
eskiz = EskizSMS('email', 'password', save_token=True, env_file_path='.env')
# Don't forget to add env file to .gitignore!
response = eskiz.send_sms('998901234567', message='message')
Async usage
import asyncio
from eskiz_sms.async_ import EskizSMS
async def main():
eskiz = EskizSMS('email', 'password')
response = await eskiz.send_sms('998901234567', 'Hello, World!')
asyncio.run(main())
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
eskiz_sms-0.2.2.tar.gz
(8.2 kB
view hashes)
Built Distribution
eskiz_sms-0.2.2-py3-none-any.whl
(10.9 kB
view hashes)
Close
Hashes for eskiz_sms-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db4d1cd0f46a3ced8d4541f9fb5c6375bbdda45d098be1d47c0558de6f6e0220 |
|
MD5 | 3d3de2b0c594e409395b2af6d7f4ccc1 |
|
BLAKE2b-256 | 49cc0ca56bb14ee2780f1de8bc82e2e2dc7b42d08ef7e36ee1eadafb8e3c9999 |