Developer's API

Sending SMS
Base URL

Submit all requests to the base URL. All the requests are submitted through HTTP POST method.

Base URL: http://www.connectmedia.co.ke/user-board/?api
Parameters

Submit all requests to the base URL. All the requests are submitted through HTTP POST method.

Parameter Name Type Description
username String Your ConnectMedia.Co.Ke Account Username
password String Your ConnectMedia.Co.Ke Account Password
sender AlphaNumeric String (Max 11 Characters) Sender ID (Mask) which you want the message to be delivered from. You have to purchase one for you, if the sender id is not purchased default sender id will be replaced with yours.
message String Message you want to send. Messages are charged on the multiples of 140 characters.
to Numeric (Array) International format destination numbers starting with country code e.g 254
action String Its value should be fixed 'send' when u sending message through API
Examples

PHP

                        
                            
$text_message="Thank you for the Text Message Sent, it was well received";
$username = "your username";
$password = "your password";
$postUrl = "http://www.connectmedia.co.ke/user-board/?api";
$to='254xxxxxx';
$action="send";
$sender="Sender ID";
$post = [
'action' => "$action", //Please don’t change
'to' => array($to), //Please don’t change
'username' => "$username", //Please don’t change
'password' => "$password", //Please don’t change
'sender' => "$sender", //Please don’t change
'message' => urlencode("$text"),//Please don’t change
];
$ch = curl_init($postUrl); //Please don’t change
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post));
$response = curl_exec($ch);
curl_close($ch);
More Samples Available Here