Skip to content
Snippets Groups Projects
Commit dbe2d34b authored by Kevin Saliou's avatar Kevin Saliou
Browse files

update sample script

parent 6fcf90e9
No related merge requests found
......@@ -15,7 +15,6 @@ return PhpCsFixer\Config::create()
'linebreak_after_opening_tag' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'phpdoc_add_missing_param_annotation' => true,
])
->setFinder($finder)
;
......@@ -28,7 +28,7 @@ $versionId = 2;
// ----------------------------
// Instanciate a redmine client
// --> with ApiKey
$client = new Redmine\Client('http://redmine.example.com', '1234567890abcdfgh');
$client = new Redmine\Client('http://localhost', '1234567890abcdfgh');
// --> with Username/Password
$client = new Redmine\Client('http://redmine.example.com', 'username', 'password');
......@@ -43,6 +43,10 @@ $client->setCheckSslCertificate(true);
// (it will try to guess it from the url)
$client->setPort(8080);
// ----------------------------
// [OPTIONAL] set a custom host
$client->setCustomHost('http://redmine.example.com');
// ----------------------------
// Trackers
$client->tracker->all();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment