Skip to content

Latest commit

History

History
13 lines (10 loc) · 387 Bytes

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 = newGithub\Client();
echo$client->getApiVersion(); // prints "v3"$client = newGithub\Client(newGithub\HttpClient\Builder($httpClient), 'v2');
echo$client->getApiVersion(); // prints "v2"