Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 387 Bytes

api_version.md

File metadata and controls

13 lines (10 loc) · 387 Bytes

Api version

Back to the navigation

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

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

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