PHP code example of goldspecdigital / voodoo-sms-sdk
1. Go to this page and download the library: Download goldspecdigital/voodoo-sms-sdk library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
goldspecdigital / voodoo-sms-sdk example snippets
use GoldSpecDigital\VoodooSmsSdk\Client;
$client = new Client('username', 'password', 'CompanyName');
$response = $client->send('This is a test message', '07712345678');
var_dump($response);
/*
{
"result": 200,
"resultText": "200 OK",
"reference_id": ["A3dads..."]
}
*/
use GoldSpecDigital\VoodooSmsSdk\Client;
$client = new Client('username', 'password', 'CompanyName');
$response = $client->getDeliveryStatus('A3dads...');
var_dump($response);
/*
{
"result": "200 OK",
"reference_id": "A3dads...",
"message": "This is a test message",
"delivery_status": "Delivered",
"delivery_datetime": "2017-12-28 00:06:09"
}
*/
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.