<?php
$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'https://app.yellikasms.com/api/v3/sms/send');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"recipient": "225++++++", "sender_id": "XXX-SENDER-ID-ICI-XXX", "type": "plain", "message": "MESSAGE-ICI"}');

$headers = array();
$headers[] = 'Accept: application/json';
$headers[] = 'Authorization: Bearer XXXX-VOTRE-TOKEN--ICI-XXXX';
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$result = curl_exec($ch);
if (curl_errno($ch)) {
    echo 'Error:' . curl_error($ch);
}
curl_close($ch);

echo $result;
?>