Exemple #1
0
$userId = 3;
$versionId = 2;
// ----------------------------
// Instanciate a redmine client
// --> with ApiKey
$client = new Redmine\Client('http://redmine.example.com', '1234567890abcdfgh');
// --> with Username/Password
$client = new Redmine\Client('http://redmine.example.com', 'username', 'password');
// ----------------------------
// [OPTIONAL] if you want to check
// the servers' SSL certificate on Curl call
$client->setCheckSslCertificate(true);
// ----------------------------
// [OPTIONAL] set the port
// (it will try to guess it from the url)
$client->setPort(8080);
// ----------------------------
// Trackers
$client->api('tracker')->all();
$client->api('tracker')->listing();
// ----------------------------
// Issue statuses
$client->api('issue_status')->all();
$client->api('issue_status')->listing();
$client->api('issue_status')->getIdByName('New');
// ----------------------------
// Project
$client->api('project')->all();
$client->api('project')->all(array('limit' => 10));
$client->api('project')->listing();
$client->api('project')->listing();