Skip to content

Instantly share code, notes, and snippets.

@superboum
Created November 6, 2017 19:07
Show Gist options
  • Save superboum/b56d324486af49528b55d5e631dd5f4d to your computer and use it in GitHub Desktop.
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
#!/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