Submit all requests to the base URL for fetching your inbox messages. All the requests are submitted through HTTP POST method.
Base URL: http://www.connectmedia.co.ke/user-board/?api
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 |
PHP
More Samples Available Here$username = "your username";
$password = "your password";
$postUrl = "http://www.connectmedia.co.ke/user-board/?api_v1";
$action="inbox";
$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);
curl_close($ch);