Ejemplo n.º 1
0
)
*/
// Modify account
$params = array('name' => 'Testing', 'city' => 'Testing City', 'address' => 'Sample address', 'timezone' => 'Indian/Mauritius');
$response = $p->modify_account($params);
// print_r ($response['response']);
/*
Sample Output
( 
    [api_id] => 809248b4-ac35-11e4-a2d1-22000ac5040c 
    [message] => changed 
)
*/
// Create a sub account
$params = array('name' => 'TestingSubAcount', 'eabled' => 'True');
$response = $p->create_subaccount($params);
// print_r ($response['response']);
/*
Sample Output
( 
    [api_id] => 08175698-ac37-11e4-a2d1-22000ac5040c 
    [auth_id] => SAM2U3ZDEXOTK0NTMWMJ 
    [auth_token] => YjFhM2EzNWExM2M4NmU3MzNmZGRiMjFiM2M3N2Qz 
    [message] => created 
)
*/
// Modify a subaccount
$params = array('subauth_id' => 'SAMTRLYZG0MMRIODZKZM', 'name' => 'SampleModify');
$response = $p->modify_subaccount($params);
// print_r ($response['response']);
/*