Welcome to the Urdu Poetry Archive! Urdu poetry is like a vast ocean. Walking along its shores on the sands of time, I have gathered a few gems that I would like to share with you.
Thursday, January 8, 2015
sms
// Send SMS
$number = 12345678;
$text = 'Hi John, how are you?';
$sms_api_result = sendSMS($number, $text);
// Check if SMS was sent
if ($sms_api_result[0] == 'OK') {
// Ok, SMS received by the API
echo 'The SMS was sent.';
}
else {
// Failure, SMS was not sent
// In this example we display the response to identify the error
print_r($sms_api_result);
}
// Check coverage
$number = 12345678;
$sms_api_result = coverageQuery($number);
// Check if recipient number is covered
if ($sms_api_result[0] == 'OK') echo 'The number is covered. You can send to this recipient.';
else echo 'This number is not covered. You cannot send to this recipient.';
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment