Skip to content

Instantly share code, notes, and snippets.

@toast38coza
Created September 6, 2013 12:28
Show Gist options
  • Save toast38coza/6463109 to your computer and use it in GitHub Desktop.
Save toast38coza/6463109 to your computer and use it in GitHub Desktop.
Send an SMS using BulkSMS and python's requests library
import requests
url = "http://bulksms.2way.co.za:5567/eapi/submission/send_sms/2/2.0"
phone_number = 27123456678
data = {'username' : 'xxxx', 'password' : 'xxxx', 'message' : 'Testing SMS', 'msisdn' : phone_number}
response = requests.post(url,data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment