Developer's API

Receiving SMS
SMS API Response

Our SMS API responds to all queries in JSON encoded. You have to JSON decode the API response to get the actuall result.

Returned Parameters

Our API Responds with following parameter against sms receiving call in array.

Parameter Name Type Description
code Numeric String Response Code
message String Response Details
Examples

PHP

                        
                            
$jsonarray[]=array();
$jsonarray=json_decode($response, true);
$count = count($jsonarray);
$code="$jsonarray[code]"; //Response code of the API
if($code=='302')
foreach($jsonarray as $value)
{
if (--$count <= 0)
break;
echo "Message Text:";
echo $value['message_text']; //Text of the message which was sent
echo "- Message Date:";
echo $value['message_datetime']; //Date when message sent
echo "- Message From:";
echo $value['message_from']; //Number whom sents you message
echo "
";
}
if($code=='301')
echo "Error in Fetching Data";
More Samples Available Here