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.
1 parent 71cee7d commit e6d3ba1Copy full SHA for e6d3ba1
doc/api_version.md
@@ -1,14 +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
5
-the `setApiVersion` function.
+If you want to change the API version from its default ("v3") you may do that with a constructor argument.
6
For example:
7
8
```php
9
$client = new Github\Client();
10
-
11
echo $client->getApiVersion(); // prints "s3"
12
13
-$client->setApiVersion("v2");
+$client = new Github\Client($httpClient, 'v2');
+echo $client->getApiVersion(); // prints "s2"
14
```
0 commit comments