Method to create an authorisation.
object
createAuthorisation
([array $scopes = array()], [string $note = ''], [string $url = ''])
-
array
$scopes: A list of scopes that this authorisation is in.
-
string
$note: A note to remind you what the OAuth token is for.
-
string
$url: A URL to remind you what app the OAuth token is for.
Method to delete an authorisation
object
deleteAuthorisation
(integer $id)
-
integer
$id: ID of the authorisation to delete
Method to edit an authorisation.
object
editAuthorisation
(integer $id, [array $scopes = array()], [array $addScopes = array()], [array $removeScopes = array()], [string $note = ''], [string $url = ''])
-
integer
$id: ID of the authorisation to edit
-
array
$scopes: Replaces the authorisation scopes with these.
-
array
$addScopes: A list of scopes to add to this authorisation.
-
array
$removeScopes: A list of scopes to remove from this authorisation.
-
string
$note: A note to remind you what the OAuth token is for.
-
string
$url: A URL to remind you what app the OAuth token is for.
Method to get details about an authorised application for the authenticated user.
object
getAuthorisation
(integer $id)
-
integer
$id: ID of the authorisation to retrieve
Method to get the authorised applications for the authenticated user.
object
getAuthorisations
()
Method to get the rate limit for the authenticated user.
object
getRateLimit
()
Inherited Methods
Inherited From JGithubObject
JGithubObject::__construct()
JGithubObject::fetchUrl()
JGithubObject::processResponse()