GitHub API object class for the Joomla Platform.
- Depuis
- 1.7.3
- Obsolète:
- 4.0 Use the
joomla/github
package via Composer instead
◆ __construct()
Constructor.
- Paramètres
-
Registry | $options | GitHub options object. |
JGithubHttp | $client | The HTTP client object. |
- Depuis
- 1.7.3
Références $client, et $options.
◆ fetchUrl()
fetchUrl |
( |
|
$path, |
|
|
|
$page = 0 , |
|
|
|
$limit = 0 |
|
) |
| |
|
protected |
Method to build and return a full request URL for the request. This method will add appropriate pagination details if necessary and also prepend the API url to have a complete URL for the request.
- Paramètres
-
string | $path | URL to inflect |
integer | $page | Page to request |
integer | $limit | Number of results to return per page |
- Renvoie
- string The request URL.
- Depuis
- 1.7.3
Références $limit, $password, $path, et $uri.
◆ processResponse()
processResponse |
( |
JHttpResponse |
$response, |
|
|
|
$expectedCode = 200 , |
|
|
|
$decode = true |
|
) |
| |
|
protected |
Process the response and decode it.
- Paramètres
-
JHttpResponse | $response | The response. |
integer | $expectedCode | The expected "good" code. |
boolean | $decode | If the should be response be JSON decoded. |
- Exceptions
-
- Depuis
- 3.3.0
- Renvoie
- mixed
Références $message.
◆ $client
◆ $options
La documentation de cette classe a été générée à partir du fichier suivant :