Skip to main content

GetSms

Project description

GET SMS

pip install getsms
pip install requests

SEND MESSAGE

from get_sms import Getsms
message = Getsms(login=login, password=password, nickname=nickname)
phone_numbers = ['998998158172', '998995451872']
results = message.send_message(phone_numbers=phone_number, 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

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

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for getsms, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size getsms-0.1-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size getsms-0.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page