Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 532 Bytes

request_any_route.md

File metadata and controls

15 lines (11 loc) · 532 Bytes

Request any Route

Back to the navigation

The method you need does not exist yet? You can access any GitHub route by using the "get" and "post" methods. For example:

$client   = new Github\Client();
$response = $client->getHttpClient()->get('repos/KnpLabs/php-github-api');
$repo     = Github\HttpClient\Message\ResponseMediator::getContent($response);

Returns an array describing the "php-github-api" repository.

See all GitHub API routes: http://developer.github.com/