Skip to content

Instantly share code, notes, and snippets.

@Ravlissimo
Forked from superboum/sms.py
Created December 16, 2023 16:55
Show Gist options
  • Save Ravlissimo/c95b1cdfa7985b6db1863f522040a5d1 to your computer and use it in GitHub Desktop.
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
#!/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