Creating, deleting and listing authorizations. Wraps GitHub Authorizations API.
$authorizations = $github->api('authorizations')->all();
$authorization = $github->api('authorizations')->show(1);
$data = array(
'note' => 'This is an optional description'
);
$authorization = $github->api('authorizations')->create($data);
Creates and returns an authorization.
You can update note
.
$data = array(
'note' => 'This is new note'
);
$authorization = $github->api('authorizations')->update(1234, $data);
$authorization = $github->api('authorizations')->remove(1234);
$authorization = $github->api('authorizations')->check(1234, 'token');
$authorization = $github->api('authorizations')->reset(1234, 'token');
$github->api('authorizations')->revoke(1234, 'token');
$github->api('authorizations')->revokeAll(1234);