Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
__construct (Registry $options=null, JHttp $http=null, JInput $input=null, JApplicationWeb $application=null) | |
authenticate () | |
isAuthenticated () | |
createUrl () | |
query ($url, $data=null, $headers=array(), $method='get', $timeout=null) | |
getOption ($key) | |
setOption ($key, $value) | |
getToken () | |
setToken ($value) | |
refreshToken ($token=null) | |
Attributs protégés | |
$options | |
$http | |
$input | |
$application | |
Joomla Platform class for interacting with an OAuth 2.0 server.
joomla/oauth2
framework package that will be bundled instead __construct | ( | Registry | $options = null , |
JHttp | $http = null , |
||
JInput | $input = null , |
||
JApplicationWeb | $application = null |
||
) |
Constructor.
Registry | $options | JOAuth2Client options object |
JHttp | $http | The HTTP client object |
JInput | $input | The input object |
JApplicationWeb | $application | The application object |
authenticate | ( | ) |
Get the access token or redict to the authentication URL.
RuntimeException |
Références $data.
createUrl | ( | ) |
getOption | ( | $key | ) |
Get an option from the JOAuth2Client instance.
string | $key | The name of the option to get |
Références $key.
getToken | ( | ) |
isAuthenticated | ( | ) |
Verify if the client has been authenticated
Références elseif.
Send a signed Oauth request.
string | $url | The URL for the request. |
mixed | $data | The data to include in the request |
array | $headers | The headers to send with the request |
string | $method | The method with which to send the request |
int | $timeout | The timeout for the request |
InvalidArgumentException | |
RuntimeException |
refreshToken | ( | $token = null | ) |
Refresh the access token instance.
string | $token | The refresh token |
Exception | |
RuntimeException |
Références $data.
setOption | ( | $key, | |
$value | |||
) |
Set an option for the JOAuth2Client instance.
string | $key | The name of the option to set |
mixed | $value | The option value to set |
setToken | ( | $value | ) |
Set an option for the JOAuth2Client instance.
array | $value | The access token |
Références $value.
|
protected |
|
protected |
|
protected |
|
protected |