JGithubPackageAuthorization
class JGithubPackageAuthorization extends JGithubPackage
GitHub API Authorization class for the Joomla Platform.
Methods
object
create(
array $scopes = array(),
string $note = '',
string $url = '')
Method to create an authorization.
object
delete(
integer $id)
Method to delete an authorization
object
edit(
integer $id,
array $scopes = array(),
array $addScopes = array(),
array $removeScopes = array(),
string $note = '',
string $url = '')
Method to edit an authorization.
object
get(
integer $id)
Method to get details about an authorised application for the authenticated user.
object
getList()
Method to get the authorised applications for the authenticated user.
object
getRateLimit()
Method to get the rate limit for the authenticated user.
JUri
getAuthorizationLink(
string $client_id,
string $redirect_uri = '',
string $scope = '',
string $state = '')
- Request authorization on GitHub.
string
requestToken(
string $client_id,
string $client_secret,
string $code,
string $redirect_uri = '',
string $format = '')
- Request the access token.
Details
object
create(
array $scopes = array(),
string $note = '',
string $url = '')
Method to create an authorization.
object
edit(
integer $id,
array $scopes = array(),
array $addScopes = array(),
array $removeScopes = array(),
string $note = '',
string $url = '')
Method to edit an authorization.
object
get(
integer $id)
Method to get details about an authorised application for the authenticated user.