Skip to content

Instantly share code, notes, and snippets.

@luk-
Created January 20, 2012 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luk-/1648414 to your computer and use it in GitHub Desktop.
Save luk-/1648414 to your computer and use it in GitHub Desktop.
<?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