https://github.com/oli3djon/eskiz-pkg
Integration Python & Eskiz.uz SMS API 2024 — 06
https://github.com/oli3djon/eskiz-pkg
python-sms sms sms-service
Last synced: 10 months ago
JSON representation
Integration Python & Eskiz.uz SMS API 2024 — 06
- Host: GitHub
- URL: https://github.com/oli3djon/eskiz-pkg
- Owner: oli3djon
- Created: 2025-04-01T08:03:32.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T08:04:25.000Z (about 1 year ago)
- Last Synced: 2025-06-28T09:38:52.304Z (11 months ago)
- Topics: python-sms, sms, sms-service
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Integration Eskiz.uz SMS Provider
Support by Telegram - http://t.me/muhammadali_me
```
$ pip install eskiz-pkg
```
### Credentials
```
URL: https://notify.eskiz.uz/api/
Email: test@eskiz.uz
Password: j6DWtQjjpLDNjWEk74Sx
```
## Docs
* [Send SMS](#send-sms)
* [Refresh Token](#refresh-token)
## Send SMS
Example for send SMS:
Request
```
from eskiz.client.sync import ClientSync
eskiz_client = ClientSync(
email="test@eskiz.uz",
password="j6DWtQjjpLDNjWEk74Sx",
)
text = "Hello from Python"
resp = eskiz_client.send_sms(
phone_number=998888351717,
message=text
)
print(resp)
```
Response
```
id='e837dec2-2f5a-44a9-a1d1-6fcc13e94d86' message='Waiting for SMS provider' status='waiting'
```
## Refresh Token
Example for refresh token:
Request
```
from eskiz.client.sync import ClientSync
eskiz_client = ClientSync(
email="test@eskiz.uz",
password="j6DWtQjjpLDNjWEk74Sx",
)
resp = eskiz_client.refresh_token()
print(resp)
```
Response
```
eyJleHAiOjE3MjA4NTQ5NTUsImlhdCI6MTcxODI2Mjk1NSwicm9sZSI6InVzZXIiLCJzaWduIjoiNjU5OWQ1MWU4ZjU0NTFmMjc3OTQ1MTA3N2NmMzdmMTMxM2QzYjkzMDk1Y
```
## Check Balance
Example for checking the SMS balance:
Request
```
from eskiz.client.sync import ClientSync
eskiz_client = ClientSync(
email="test@eskiz.uz",
password="j6DWtQjjpLDNjWEk74Sx",
)
balance = eskiz_client.get_balance()
print(f"Remaining SMS credits: {balance}")
```
Response
```
Remaining SMS credits: 0
```