Send SMS via HTTP (MT) Example
This document will go over executing API calls and provide examples.
GET /srs/api/sendsms
GET /srs/api/sendsmscurl -X GET -H "Content-type: application/json" 'https://hostname/srs/api/sendsms?USER_NAME=<account_id>&PASSWORD=<api_key>&ORIGINATOR=<SHORT CODE>&RECIPIENT=<MSISDN>&PROVIDER=<Network Provider>&KEYWORD=<Keyword>&MESSAGE_TEXT=Hello%20There!&VALUE=0'import requests
headers = {
'Content-type': 'application/json',
}
data = 'USER_NAME=<account_id>&PASSWORD=<api_key>&ORIGINATOR=<SHORT CODE>&RECIPIENT=<MSISDN>&PROVIDER=<Network Provider>&KEYWORD=<Keyword>&MESSAGE_TEXT=Hello%20There!&VALUE=0'
response = requests.get('http://hostname/srs/api/sendsms', headers=headers, data=data)Name
Value
Parameter
Type
Example
Description
{
"MT-aabbccddeeff00112233445566778899"
}{
"error": "Username or Password incorrect"
}Last updated