Skip to content

Instantly share code, notes, and snippets.

@gbraad
Last active August 30, 2017 08:09
Show Gist options
  • Save gbraad/938802 to your computer and use it in GitHub Desktop.
Save gbraad/938802 to your computer and use it in GitHub Desktop.
Example of how to use BugzillaClient

Example of how to use BugzillaClient

<?
$bzBaseUrl = '';
$bzUsername = '';
$bzPassword = '';
?>
<?
require_once('config.php'); // Contains the baseUrl and credentials
require_once('BugzillaClient.php'); // This is the client code
$bzClient = new BugzillaClient($bzBaseUrl, $bzUsername, $bzPassword);
$id = $_POST['id'];
$bug = $bzClient->Get($id);
echo $bug['summary']);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment