Skip to content

Instantly share code, notes, and snippets.

@IanoNjuguna
Created April 14, 2024 13:40
Show Gist options
  • Save IanoNjuguna/4600149e402bcbf2b636ebb40e1c5c21 to your computer and use it in GitHub Desktop.
Save IanoNjuguna/4600149e402bcbf2b636ebb40e1c5c21 to your computer and use it in GitHub Desktop.
This script sends an sms using the textbelt sms api.
#!/bin/python3
import requests
resp = requests.post('https://textbelt.com/text', {
'phone': '5555555555', # Customise the phone number for your personal use
'message': 'Hello world', # Customise the message for your personal use
'key': 'textbelt', # Use key=textbelt to send 1 free text per day
})
print(resp.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment