Created
January 20, 2012 17:06
-
-
Save luk-/1648414 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(__FILE__) .'/class.uber_api_client.php'; | |
$client = new uber_api_client('http://instance-url/','admin','pass'); | |
try { | |
$result = $client->call('support.ticket_list',array( | |
'type' => 'closed', | |
'order_by' => 'timestamp' | |
)); | |
print_r($result); | |
} catch (Exception $e) { | |
print 'Error: '. $e->getMessage() .' ('. $e->getCode() .')'; | |
} | |
// end of script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment