Created
November 14, 2014 16:06
-
-
Save nicholastjohnson/c386ac41c6795d49eb3c to your computer and use it in GitHub Desktop.
Send text to any number in the US through Python
This file contains 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 | |
def send_text(numstring, message): | |
message = {"number":numstring, "message":message} | |
r = requests.post("http://textbelt.com/text", data=message) | |
return r.status_code, r.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment