Created
October 6, 2016 12:57
-
-
Save dobestan/41645cd0c5e789ab7e6685c29aa56fcb to your computer and use it in GitHub Desktop.
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
def send_sms(sender, receiver, content): | |
url = "http://api.openapi.io/ppurio/1/message/sms/dobe/" | |
headers = { | |
"x-waple-authorization": "MTkyMC0xNDEzODU0NTAwMzU3LTllM2VkOTM3LTYwMTEtNGU2Zi1iZWQ5LTM3NjAxMTNlNmYyMg==" | |
} | |
data = { | |
"send_phone": sender, | |
"dest_phone": receiver, | |
"msg_body": content | |
} | |
response = requests.post(url, headers=headers, data=data) | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment