This package makes it easy to send Mobtexting notifications.
You can install the package via pip :
pip install git+git://github.com/mobtexting/mobtexting-python.git --user
from mobtexting.client import Client
access_token = 'xxxxxxxxxxxxxxxxxx'
client = Client(access_token)
response = client.send(
to="1234567890",
_from="MobTxt",
body="Hello from Python!",
service="P"
)
print response.json()
from mobtexting.verify import Verify
access_token = 'xxxxxxxxxxxxxxxxxx'
verify = Verify(access_token)
response = verify.send(
to="1234567890",
)
print response.json()
response = verify.send(
to="1234567890",
data = {
'length': 4,
'timeout': 600
}
)
print response.json()
visit documentation for a list of all parameters
response = verify.check(
id='b51be650-fdb2-4633-b101-d450e8d9ec64', # id received while sending
token='123456' # token entered by user
)
print response.json()
response = verify.cancel(
id='4e28e081-2900-4523-aed6-a21eb39c2ae6' # id received while sending
)
print response.json()