SMS - Developers

SMS APIs

 

Developer's spot

Our SMS APIs in PHP and CURL


Our APIs are set to help you have ease in integrating our SMS platform within your existing code. We have preset the parameters for you in POST and GET PHP methods.


Register to get API Keys

$partnerID = "xxxx";
$apikey = "xxxxxxxxxxxxxxxxxxxxxxx"; //request apikey
$shortcode = "XXXXXXX"; //your shortcode

$mobile = "2547xxxxxxxx"; // Bulk messages can be comma separated
$message = "This is a test message + = # special characters @ _ -";

$finalURL = "https://smsbee.bumblebee.co.ke/api/services/sendsms/?apikey=" . urlencode($apikey) . "&partnerID=" . urlencode($partnerID) . "&message=" . urlencode($message) . "&shortcode=$shortcode&mobile=$mobile";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $finalURL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec($ch);
curl_close($ch);
echo "Response: $response";

$url = 'https://smsbee.bumblebee.co.ke/api/services/getbalance/';

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); //setting custom header

$curl_post_data = array( //Fill in the request parameters with valid values 'partnerID' => 'xxxx', 'apikey' => 'xxxxxxxxxxxxx', );

$data_string = json_encode($curl_post_data);

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data_string);

$curl_response = curl_exec($curl);
print_r($curl_response);

Do you need any help, have a question, a concern, need a quote, can't find what you are looking for on this page or any other thing you'd want to talk about related to Acruzen SMS? Reach out to us today