Send A Premium SMS via HTTP (MT) Example
Learn how to send a Premium SMS MT message.
GET /srs/api/sendsms
GET /srs/api/sendsmscurl -XGET -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=<AMOUNT>&NETWORK=<NETWORK PROVIDER>'import requests
headers = {
'Content-type': 'application/json',
}
response = requests.get(
'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=<AMOUNT>&NETWORK=<NETWORK PROVIDER>',
headers=headers,
)Name
Value
Parameter
Type
Example
Description
{
"MT-aabbccddeeff00112233445566778899p"
}{
"error": "Username or Password incorrect"
}Last updated