Chikka API PHP Library is a simple yet rich featured php library that lets you use [CHIKKA SMS API][1] and [here][2].
- Ability to send SMS/Text
- Receive an SMS
- Reply
- Fetch sms notifications
<?php
include('ChikkaSMS.php');
$clientId = 'xxxxx';
$secretKey = 'xxxxxx';
$shortCode = 'xxxxxx';
$chikkaAPI = new ChikkaSMS($clientId,$secretKey,$shortCode);
$response = $chikkaAPI->sendText('UNIQUEMESSAGEID', 'MOBILENUMBER', 'YOURMESSAGE');
<?php
include('ChikkaSMS.php');
$clientId = 'xxxxx';
$secretKey = 'xxxxxx';
$shortCode = 'xxxxxx';
$chikkaAPI = new ChikkaSMS($clientId, $secretKey, $shortCode);
if($_POST){
if ($chikkaAPI->receiveNotifications() === null) {
header("HTTP/1.1 400 Error");
echo "Message has not been processed.";
}
else{
echo "Message has been successfully processed.";
}
var_dump($chikkaAPI->receiveNotifications());
}
MIT
Free Software, Hell Yeah! [1]:http://api.chikka.com [2]:http://ronaldmojica.blogspot.com