Skip to content

Commit 1f50d2d

Browse files
authored
Merge pull request KnpLabs#418 from Nyholm/api-version
Added docs about api_version
2 parents 6833445 + 08083e5 commit 1f50d2d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

doc/api_version.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Api version
2+
[Back to the navigation](README.md)
3+
4+
If you want to change the API version from its default ("v3") you may do that with a constructor argument.
5+
For example:
6+
7+
```php
8+
$client = new Github\Client();
9+
echo $client->getApiVersion(); // prints "v3"
10+
11+
$client = new Github\Client($httpClient, 'v2');
12+
echo $client->getApiVersion(); // prints "v2"
13+
```

0 commit comments

Comments
 (0)