Skip to content

Instantly share code, notes, and snippets.

@sluther
Created September 2, 2011 00:49
Show Gist options
  • Save sluther/1187693 to your computer and use it in GitHub Desktop.
Save sluther/1187693 to your computer and use it in GitHub Desktop.
Parse Tickets with Web-API in Cerb5
$cerb5 = new Cerb5_WebAPI($username, $password);
$postfields = array(
array('message', file_get_contents('restapitestmessage.msg')), // this file should be located in the same directory as parse.php.
);
$result = $cerb5->post($base_url . 'parser/parse.json', $postfields);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment