Skip to content

Commit 0880dbd

Browse files
committed
Update doc/request_any_route.md
Update docs how to execute any route when calling API. Closes #24
1 parent a886a1b commit 0880dbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/request_any_route.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ The method you need does not exist yet? You can access any GitHub route by using
55
For example:
66

77
```php
8-
$repo = $client->get('repos/show/ornicar/php-github-api');
8+
$client = new Github\Client();
9+
$repo = $client->getHttpClient()->get('repos/KnpLabs/php-github-api');
910
```
1011

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

13-
See all GitHub API routes: [http://develop.github.com/](http://develop.github.com/)
14+
See all GitHub API routes: [http://developer.github.com/](http://developer.github.com/)

0 commit comments

Comments
 (0)