Package for eskiz.uz/sms
Project description
eskiz-sms
eskiz-sms package for eskiz.uz/sms
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
if after getting a token, you want to save it somewhere and use until it expires, You can pass token value to the eskiz_sms instance
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')
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.1.18.tar.gz
(6.4 kB
view hashes)
Built Distribution
Close
Hashes for eskiz_sms-0.1.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a4d8d7aa214bd9159be3ca23568e9f567a7285f8c5c46d4ee8f9d345845382 |
|
MD5 | 39e7e048c823834d794715e65fd6fad7 |
|
BLAKE2b-256 | 9fafeaf7f14a7409ccea38be6ff57c06dda93faec9b26eee49dd1abc98afa7d6 |