https://github.com/begyy/getsms
http://getsms.uz/
https://github.com/begyy/getsms
getsmsuz sms sms-api sms-gateway sms-messages
Last synced: 5 months ago
JSON representation
http://getsms.uz/
- Host: GitHub
- URL: https://github.com/begyy/getsms
- Owner: begyy
- License: mit
- Created: 2020-01-14T12:20:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-23T19:13:53.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T11:14:17.321Z (6 months ago)
- Topics: getsmsuz, sms, sms-api, sms-gateway, sms-messages
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GET SMS
[](https://pepy.tech/project/getsms)
[](https://github.com/begyy/getsms/blob/master/LICENSE)
```
pip install getsms
pip install requests
```
# SEND MESSAGE
```python3
from get_sms import Getsms
message = Getsms(login=login, password=password, nickname=nickname)
phone_numbers = ['998998158172', '998995451872']
results = message.send_message(phone_numbers=phone_numbers, text='Hello World')if 'error' in results:
print(results)for result in results:
print(result.phone_number)# RESPONSE FIELDS
phone_number
text
date_received
message_id
request_id
client_ip
user_id
```# CHECK STATUS
```python
from get_sms import Getsms
message = Getsms(login=login, password=password, nickname=nickname)
request_ids = [1234567, 456789]
results = message.check_status(request_ids)
if 'error' in results:
print(results)for result in results:
print(result.status)# RESPONSE FIELDS
phone_number
status
text
user_id
date_received
date_sent
date_delivered
message_id
request_id
count_messages
client_ip
description
```