Skip to content

Commit

Permalink
update sample script
Browse files Browse the repository at this point in the history
  • Loading branch information
kbsali committed Feb 6, 2017
1 parent 6fcf90e commit dbe2d34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .php_cs
Expand Up @@ -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)
;
6 changes: 5 additions & 1 deletion example.php
Expand Up @@ -28,7 +28,7 @@
// ----------------------------
// 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');
Expand All @@ -43,6 +43,10 @@
// (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();
Expand Down

0 comments on commit dbe2d34

Please sign in to comment.