This commit is contained in:
Simon Vieille 2015-02-11 01:28:43 +01:00
parent 7d271a20ab
commit 9147460db3
2 changed files with 6 additions and 1 deletions

View file

@ -80,6 +80,11 @@ class Client
return $this->get(true, '/torrents/top/'.$period);
}
public function getUserProfile($id)
{
return $this->get(true, '/users/profile/'.$id);
}
public function get($needAuthorization, $uri, array $options = array())
{
return $this->send($needAuthorization, 'get', $uri, $options);

View file

@ -17,7 +17,7 @@ class TypesTreeCommand extends Command
->setName('types:tree')
->setDescription('Show types and terms')
->addOption('terms', 't', InputOption::VALUE_NONE, 'Show terms')
->addOption('filter', 'f', InputOption::VALUE_OPTIONAL, 'Filter types by ID or by name')
->addOption('filter', 'f', InputOption::VALUE_REQUIRED, 'Filter types by ID or by name')
->setHelp("<info>%command.name%</info>
List all types of terms and terms.