Ejemplo n.º 1
0
/*
$count = ($response['response']['meta']['total_count']);
echo "<br>Count : $count";
for ($i=0; $i<$count; $i++)
{
    echo "<br> Public URI : ";
    echo ($response['response']['objects'][i]['public_uri']);
    echo "<br> Default App : ";
    echo ($response['response']['objects'][i]['default_app']);
    echo "<br> Default Endpoint App : ";
    echo ($response['response']['objects'][i]['default_endpoint_app']);
}
*/
// Get details of Single Application
$params = array('app_id' => '23061826722302672');
$response = $p->get_application($params);
// print_r ($response['response']);
/*
Sample Output
( 
    [answer_method] => POST 
    [answer_url] => http://example.com 
    [api_id] => abe963d8-ac4b-11e4-b423-22000ac8a2f8 
    [app_id] => 23061826722302672 
    [app_name] => Testing 
    [default_app] => 
    [default_endpoint_app] => 
    [enabled] => 1 
    [fallback_answer_url] => 
    [fallback_method] => POST 
    [hangup_method] => POST