PHP code example of fillup / nexmo
1. Go to this page and download the library: Download fillup/nexmo 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/ */
fillup / nexmo example snippets
use Nexmo\Developer;
use Nexmo\Insight;
use Nexmo\Sms;
use Nexmo\Verify;
use Nexmo\Voice;
/**
* Load config, expecting an array with:
* api_key, api_secret, to, from, text
*/
$config = nfig['text'],
]);
/**
* Dump out results
*/
print_r($results);
// Array
// (
// [statusCode] => 200
// [message-count] => 1
// [messages] => Array
// (
// [0] => Array
// (
// [to] => 14085559876
// [message-id] => 0300000071BCAA3C
// [status] => 0
// [remaining-balance] => 15.23280000
// [message-price] => 0.00480000
// [network] => US-VOIP
// )
//
// )
//
// )