Specification Documentation, Version 1.0
PHP Examples
The examples below show you how you can use the APIs provided for your work
Sending Message
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://cbmessaging.com/api/v1/sms/send-message', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>' { "to": "09999999999", "from": "Coldsis", "content": "Hi there, CBMessaging is Awesome ", "api_key": "Your API Key", }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), )); $response = curl_exec($curl); curl_close($curl); echo $response;