Skip to content

Instantly share code, notes, and snippets.

@riaf
Created November 16, 2011 11:21
Show Gist options
  • Save riaf/1369861 to your computer and use it in GitHub Desktop.
Save riaf/1369861 to your computer and use it in GitHub Desktop.
<?php
require_once '/path/to/selfish/src/Selfish/Loader.php';
Selfish\Loader::register();
use Selfish\Service\Redmine\Connection;
use Selfish\Service\Redmine\Issues;
$redmine_connection = new Connection('http://redmine.example.com/');
$redmine_connection->setApiKey('redmine-api-access-token');
// $redmine_connection->setBasicAuth('member', 'password');
$issues = new Issues($redmine_connection);
// $response = $issues->listing(array('assigned_to_id' => 'me'));
$response = $issues->show(123);
var_dump($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment