Skip to content

Commit 2bcb8a5

Browse files
committed
Update Authroziations doc
1 parent 2ea5d50 commit 2bcb8a5

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

doc/authorizations.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Authorizations API
22
[Back to the navigation](README.md)
33

4-
Creating, deleting and listing authorizations. Wraps [GitHub Authorizations API](http://developer.github.com/v3/oauth/).
4+
Creating, deleting and listing authorizations. Wraps [GitHub Authorizations API](http://developer.github.com/v3/oauth_authorizations/).
55

66
#### List all authorizations.
77

@@ -50,3 +50,21 @@ $authorization = $github->api('authorizations')->remove(1234);
5050
```php
5151
$authorization = $github->api('authorizations')->check(1234, 'token');
5252
```
53+
54+
#### Reset an authorization
55+
56+
```php
57+
$authorization = $github->api('authorizations')->reset(1234, 'token');
58+
```
59+
60+
#### Revoke an authorization
61+
62+
```php
63+
$authorization = $github->api('authorizations')->revoke(1234, 'token');
64+
```
65+
66+
#### Revoke all authorizations
67+
68+
```php
69+
$authorization = $github->api('authorizations')->revokeAll(1234);
70+
```

0 commit comments

Comments
 (0)