Voice API
Hellio's Voice Messaging API allows you to add a more personalied approach to your
marketing strategy. Let your customers and prospects hear your voice. If your goal is to
be heard or to communicate an important information with your own voice, then our Voice
Messaging solution is your prefered service.
Voice Messaging Endpoint:
https://api.helliomessaging.com/v1/messaging/voice
Content-Type: application/json
Code Snippet (PHP)
$baseUrl = 'https://api.helliomessaging.com/v2/messaging/voice';
$username = 'YOUR-HELLIO-MESSAGING-USERNAME';
$password = 'YOUR-HELLIO-MESSAGING-PASSWORD';
$from = 'HellioSMS';
$to = '0242813656';
$audioFileUrl = 'https://file-examples-com.github.io/uploads/2017/11/file_example_MP3_1MG.mp3';
$params = array(
'username' => $username,
'password' => $password,
'from' => $from,
'to' => $to,
'audioFileUrl' => $audioFileUrl
);
// 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
{
"responseCode": "200",
"status": "success",
"message": "Voice Message Sent Successfully",
"summary": {
"id": "GSfhsdZjVut8qDsXVi",
"type": "BULK CALL",
"total_recipient": 2,
"total_cost": 0.045
}
}