Exemplo n.º 1
0
<?php

require 'vendor/autoload.php';
use Plivo\RestAPI;
$auth_id = "Your AUTH_ID";
$auth_token = "Your AUTH_TOKEN";
$p = new RestAPI($auth_id, $auth_token);
$params = array('country_iso' => 'GB');
$response = $p->pricing($params);
print_r($response);
/*
Sample Output
( 
    [status] => 200 
    [response] => Array ( 
        [api_id] => 36d239fa-ac4e-11e4-96e3-22000abcb9af 
        [country] => United Kingdom 
        [country_code] => 44 
        [country_iso] => GB 
        [message] => Array ( 
            [inbound] => Array ( 
                [rate] => 0.00000 
            ) [outbound] => Array ( 
                [rate] => 0.03680 
            ) [outbound_networks_list] => Array ( 
                [0] => Array ( 
                    [group_name] => United Kingdom - All 
                    [rate] => 0.03680 
                ) 
            ) 
        ) [phone_numbers] => Array (