Skip to content

Commit 71cee7d

Browse files
committed
Added docs about api_version
1 parent 50eecee commit 71cee7d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/api_version.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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.
6+
For example:
7+
8+
```php
9+
$client = new Github\Client();
10+
11+
echo $client->getApiVersion(); // prints "s3"
12+
13+
$client->setApiVersion("v2");
14+
```

0 commit comments

Comments
 (0)