From 9147460db3c113a335a56255a14ff20373cfc80d Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 11 Feb 2015 01:28:43 +0100 Subject: [PATCH] profile --- src/Api/Client.php | 5 +++++ src/Console/Command/TypesTreeCommand.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Api/Client.php b/src/Api/Client.php index 9d7ea91..219b1bf 100644 --- a/src/Api/Client.php +++ b/src/Api/Client.php @@ -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); diff --git a/src/Console/Command/TypesTreeCommand.php b/src/Console/Command/TypesTreeCommand.php index 748eb95..19dc2da 100644 --- a/src/Console/Command/TypesTreeCommand.php +++ b/src/Console/Command/TypesTreeCommand.php @@ -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("%command.name% List all types of terms and terms.