Created
September 6, 2013 12:28
-
-
Save toast38coza/6463109 to your computer and use it in GitHub Desktop.
Send an SMS using BulkSMS and python's requests library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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