Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions doc/api_version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Api version
[Back to the navigation](README.md)

If you want to change the API version from its default ("v3") you may do that with a constructor argument.
For example:

```php
$client = new Github\Client();
echo $client->getApiVersion(); // prints "v3"

$client = new Github\Client($httpClient, 'v2');
echo $client->getApiVersion(); // prints "v2"
```