PHP code example of patrickmaken / avlytext-client
1. Go to this page and download the library: Download patrickmaken/avlytext-client 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/ */
patrickmaken / avlytext-client example snippets
use Patrickmaken\AvlyText\Client as AVTClient;
$api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$telephone = '+237699887766';
$text = 'This is a test message';
$senderID = 'MyApp';
$response = AVTClient::sendSMS($telephone, $text, $senderID, $api_key);
var_dump($response);
use Patrickmaken\AvlyText\Client as AVTClient;
$api_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
$message_id = '0a069c28-1e75-4ad5-a352-ab02db2be1df';
$response = AVTClient::getMessageStatus($message_id, $api_key);
var_dump($response);