PHP code example of razor-informatics / ri-notifier-php
1. Go to this page and download the library: Download razor-informatics/ri-notifier-php 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/ */
razor-informatics / ri-notifier-php example snippets
use RazorInformatics\RiNotifierPhp;
$apiKey = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);
$results = $razor->message()->send([
'phone_number' => 0700XXXYYY,
'message' => "Howdy welcome to the team"
]);
print_r($results);
use RazorInformatics\RiNotifierPhp;
$apiKey = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);
$results = $razor->message()->fetchMessage('MESSAGE ID');
print_r($results);
use RazorInformatics\RiNotifierPhp;
$apiKey = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);
$results = $razor->account()->getDetails();
print_r($results);
use RazorInformatics\RiNotifierPhp;
$apiKey = 'YOUR_API_KEY';
$razor = new RiNotifierPhp\Notifier($apiKey);
$results = $razor->gateway(Constants::GATEWAY_NOTIFIER)->details();
print_r($results);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.