Skip to content

Commit

Permalink
Update Authroziations doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cursedcoder committed May 25, 2015
1 parent 2ea5d50 commit 2bcb8a5
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion doc/authorizations.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Authorizations API
[Back to the navigation](README.md)

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

#### List all authorizations.

Expand Down Expand Up @@ -50,3 +50,21 @@ $authorization = $github->api('authorizations')->remove(1234);
```php
$authorization = $github->api('authorizations')->check(1234, 'token');
```

#### Reset an authorization

```php
$authorization = $github->api('authorizations')->reset(1234, 'token');
```

#### Revoke an authorization

```php
$authorization = $github->api('authorizations')->revoke(1234, 'token');
```

#### Revoke all authorizations

```php
$authorization = $github->api('authorizations')->revokeAll(1234);
```

0 comments on commit 2bcb8a5

Please sign in to comment.