X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FGithub%2FAPI.php;h=10cf2c0c33640f90f9dfbbc360b69366f4d0c000;hb=4c462ab66e6c65c15df7bd5fe6d2673884c639a0;hp=0f8b95c4780e22e40f31fbe3ba9cf9dc4b2d544c;hpb=7f4e70ea88d180cfa25f25f3846f842c5958ebf4;p=pharext%2Fpharext.org diff --git a/app/Github/API.php b/app/Github/API.php index 0f8b95c..10cf2c0 100644 --- a/app/Github/API.php +++ b/app/Github/API.php @@ -111,6 +111,11 @@ class API $fetch = new Fetch\Token($this, compact("code") + $this->config->client->toArray()); return $fetch($callback); } + + function fetchUser(callable $callback) { + $fetch = new Fetch\User($this); + return $fetch($callback); + } function fetchRepos($page, callable $callback) { $fetch = new Fetch\Repos($this);