GitHub API Account class for the Joomla Platform.
- Depuis
- 3.1.4
- Obsolète:
- 4.0 Use the
joomla/github
package via Composer instead
◆ createAuthorisation()
createAuthorisation |
( |
array |
$scopes = array() , |
|
|
|
$note = '' , |
|
|
|
$url = '' |
|
) |
| |
Method to create an authorisation.
- Paramètres
-
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. |
- Obsolète:
- use authorization->create()
- Renvoie
- object
- Depuis
- 3.1.4
- Exceptions
-
Références $data, $path, $url, et json_encode.
◆ deleteAuthorisation()
deleteAuthorisation |
( |
|
$id | ) |
|
Method to delete an authorisation
- Paramètres
-
integer | $id | ID of the authorisation to delete |
- Obsolète:
- use authorization->delete()
- Renvoie
- object
- Depuis
- 3.1.4
- Exceptions
-
Références $id, et $path.
◆ editAuthorisation()
editAuthorisation |
( |
|
$id, |
|
|
array |
$scopes = array() , |
|
|
array |
$addScopes = array() , |
|
|
array |
$removeScopes = array() , |
|
|
|
$note = '' , |
|
|
|
$url = '' |
|
) |
| |
Method to edit an authorisation.
- Paramètres
-
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. |
- Obsolète:
- use authorization->edit()
- Renvoie
- object
- Depuis
- 3.1.4
- Exceptions
-
DomainException | |
RuntimeException | |
Références $data, $id, $path, $url, et json_encode.
◆ getAuthorisation()
Method to get details about an authorised application for the authenticated user.
- Paramètres
-
integer | $id | ID of the authorisation to retrieve |
- Obsolète:
- use authorization->get()
- Renvoie
- object
- Depuis
- 3.1.4
- Note
- This method will only accept Basic Authentication
- Exceptions
-
Références $id, et $path.
◆ getAuthorisations()
Method to get the authorised applications for the authenticated user.
- Obsolète:
- use authorization->getList()
- Renvoie
- object
- Depuis
- 3.1.4
- Exceptions
-
- Note
- This method will only accept Basic Authentication
Références $path.
◆ getRateLimit()
Method to get the rate limit for the authenticated user.
- Obsolète:
- use authorization->getRateLimit()
- Renvoie
- object
- Depuis
- 3.1.4
- Exceptions
-
Références $path.
La documentation de cette classe a été générée à partir du fichier suivant :