File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
## Authorizations API
2
2
[ Back to the navigation] ( README.md )
3
3
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 / ) .
5
5
6
6
#### List all authorizations.
7
7
@@ -50,3 +50,21 @@ $authorization = $github->api('authorizations')->remove(1234);
50
50
``` php
51
51
$authorization = $github->api('authorizations')->check(1234, 'token');
52
52
```
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
+ ```
You can’t perform that action at this time.
0 commit comments