Sending SMS
import requests
import json
# mention url
url = "https://www.fast2sms.com/dev/bulk"
# create a dictionary
my_data = {
# Your default Sender ID
'sender_id': 'FSTSMS',
# Put your message here!
'message': 'Hello World',
'language': 'english',
'route': 'p',
# You can send sms to multiple numbers
# separated by comma.
'numbers': 'phone number'
}
# create a dictionary
headers = {
'authorization':'authorization key',
'Content-Type': "application/x-www-form-urlencoded",
'Cache-Control':"no-cache"
}
response = requests.request("POST", url, data=my_data, headers=headers)