Class Github\Api\Authorizations

InheritanceGithub\Api\Authorizations » Github\Api\AbstractApi
ImplementsGithub\Api\ApiInterface

Creating, deleting and listing authorizations.

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createJsonBody() Create a JSON encoded version of an array of parameters. Github\Api\AbstractApi
delete() Send a DELETE request with JSON-encoded parameters. Github\Api\AbstractApi
get() Send a GET request with query parameters. Github\Api\AbstractApi
head() Send a HEAD request with query parameters. Github\Api\AbstractApi
patch() Send a PATCH request with JSON-encoded parameters. Github\Api\AbstractApi
post() Send a POST request with JSON-encoded parameters. Github\Api\AbstractApi
postRaw() Send a POST request with raw data. Github\Api\AbstractApi
put() Send a PUT request with JSON-encoded parameters. Github\Api\AbstractApi

Method Details

all() public method

List all authorizations.

public array all ( )
check() public method

Check an authorization.

public array check ( $clientId, $token )
$clientId
$token
create() public method

Create an authorization.

public array create ( array $params, $OTPCode null )
$params array
$OTPCode null
remove() public method

Remove an authorization.

public array remove ( $clientId )
$clientId
reset() public method

Reset an authorization.

public array reset ( $clientId, $token )
$clientId
$token
revoke() public method

Remove an authorization.

public void revoke ( $clientId, $token )
$clientId
$token
revokeAll() public method

Revoke all authorizations.

public void revokeAll ( $clientId )
$clientId
show() public method

Show a single authorization.

public array show ( $clientId )
$clientId
update() public method

Update an authorization.

public array update ( $clientId, array $params )
$clientId
$params array