' . $file . "\n"; require_once BASE_PATH . DIRECTORY_SEPARATOR . $file; } spl_autoload_register('my_autoloader'); try { $client = new \Client\GogsAPI(API_URL, API_TOKEN); $me = $client->user()->load(); $you = $client->user("INF3910-3-CSS-IoT")->load(); $mine = $me->get("/repos")->load(); //$yours = $you->get("/repos")->load(); //$me->get("/tokens")->load(); } catch (\Lib\NotAuthorizedException $e) { die($e->getMessage()); } catch (\Lib\HTTPUnexpectedResponse $e) { die($e->getMessage()); } ?>