many small updates
[pharext/pharext.org] / app / Github / API.php
index 0f8b95c4780e22e40f31fbe3ba9cf9dc4b2d544c..10cf2c0c33640f90f9dfbbc360b69366f4d0c000 100644 (file)
@@ -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);