Developer's API

Receiving SMS
Base URL

Submit all requests to the base URL for fetching your inbox messages. All the requests are submitted through HTTP POST method.

Base URL:
Parameter Name Type Description
username String Your ConnectMedia.Co.Ke Account Username
password String Your ConnectMedia.Co.Ke Account Password
action String Its value should be fixed 'inbox' when u receiving message through API


$username = "your username";
$password = "your password";
$postUrl = "";
$sender="Sender ID";
$post = [
'action' => "$action", //Please don’t change
'username' => "$username", //Please don’t change
'password' => "$password", //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);
More Samples Available Here