-
-
Save Ravlissimo/c95b1cdfa7985b6db1863f522040a5d1 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