We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6833445 + 08083e5 commit 1f50d2dCopy full SHA for 1f50d2d
doc/api_version.md
@@ -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