Skip to content

Commit fc5aef1

Browse files
committed
Update request_any_route.md
1 parent c70e022 commit fc5aef1

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,8 +5,9 @@ The method you need does not exist yet? You can access any GitHub route by using
55
For example:
66

77
```php
8-
$client = new Github\Client();
9-
$repo = $client->getHttpClient()->get('repos/KnpLabs/php-github-api');
8+
$client = new Github\Client();
9+
$response = $client->getHttpClient()->get('repos/KnpLabs/php-github-api');
10+
$repo = Github\HttpClient\Message\ResponseMediator::getContent($response);
1011
```
1112

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

0 commit comments

Comments
 (0)