Created
November 6, 2017 19:07
-
-
Save superboum/b56d324486af49528b55d5e631dd5f4d to your computer and use it in GitHub Desktop.
Python script to easily send messages to your phone via the Free Mobile API
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
#!/usr/bin/python3 | |
import requests, sys | |
payload = { | |
'user': sys.argv[1], | |
'pass': sys.argv[2], | |
'msg': sys.stdin.read() | |
} | |
r = requests.get("https://smsapi.free-mobile.fr/sendmsg", params=payload) | |
if r.status_code != 200: | |
print("echec") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment