Ejemplo n.º 1
0
    [enabled] => 1 
    [fallback_answer_url] => 
    [fallback_method] => POST 
    [hangup_method] => POST 
    [hangup_url] => http://example.com 
    [message_method] => POST 
    [message_url] => 
    [public_uri] => 
    [resource_uri] => /v1/Account/xxxxxxxxxxxxxxxx/Application/23061826722302672/ 
    [sip_uri] => sip:23061826722302672@app.plivo.com 
    [sub_account] => 
) 
*/
// Modify an Application
$params = array('app_id' => '23061826722302672', 'answer_url' => 'http://yourexample.com');
$response = $p->modify_application($params);
// print_r ($response['response']);
/*
Sample Output
( 
    [api_id] => 16bf2cf6-ac4c-11e4-b932-22000ac50fac 
    [message] => changed 
) 
*/
// Delete an Application
$params = array('app_id' => '23061826722302672');
$response = $p->delete_application($params);
// print_r ($response);
/*
Sample Output
(