Created
April 14, 2024 13:40
-
-
Save IanoNjuguna/4600149e402bcbf2b636ebb40e1c5c21 to your computer and use it in GitHub Desktop.
This script sends an sms using the textbelt sms 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
#!/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