Delivery Report
The Messaging API allows businesses send text messages to their customers. The API
accepts
form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP
response codes. A
single channel represent an individual messaging channel eg. sms, email, etc. This
API allows
businesses send text messages to their customers across any of these single
channels.
API URL V1:
https://api.helliomessaging.com/v1/delivery-report?
Request Method: MATCH (Either POST or GET)
Content-Type: application/json
PHP Code Snippet
$baseUrl = 'https://api.helliomessaging.com/v1/delivery-report';
$username = 'YOUR-HELLIO-MESSAGING-USERNAME';
$password = 'YOUR-HELLIO-MESSAGING-PASSWORD';
$startDate = 'e.g. 01-01-2012';
$endDate = 'e.g. 01-01-2020';
$params = array(
'username' => $username,
'password' => $password,
'startDate' => $startDate,
'endDate' => $endDate
);
// Send through CURL
$ch = curl_init($baseUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Process your response here
$result = curl_exec($ch);
echo var_export($result, true);
curl_close($ch);
Response Object
{
"sent": 4237,
"sent_p": "100%",
"delivered": 3823,
"delivered_p": "90%",
"acknowledged": 0,
"acknowledged_p": "0%",
"undelivered": 414,
"undelivered_p": "10%",
"expired": 0,
"expired_p": "0%"
}