Свойство | Type | Description | |
---|---|---|---|
$client_id | |||
$client_secret | |||
$errorAccessDeniedCode | |||
$jsArguments | |||
$name | |||
$providerOptions | |||
$scope | |||
$team | |||
$title | |||
$type |
Méthode | Description | |
---|---|---|
fetchAttributes ( ) | ||
fetchJsonError ( stdClass $json ) : array | Returns the error info from json. | |
getAccessToken ( $code ) | ||
getCodeUrl ( string $redirect_uri ) : string | Returns the url to request to get OAuth2 code. | |
getSignedRequestFields ( ) : array | Returns fields required for signed request. | |
initRequest ( string $url, array $options = [] ) : cURL | Add User-Agent header |
protected fetchJsonError ( stdClass $json ) : array | ||
$json | stdClass | the json response. |
Résultat | array | the error array with 2 keys: code and message. Should be null if no errors. |
protected getCodeUrl ( string $redirect_uri ) : string | ||
$redirect_uri | string | url to redirect after user confirmation. |
Résultat | string | url to request. |
protected getSignedRequestFields ( ) : array | ||
Résultat | array |
protected initRequest ( string $url, array $options = [] ) : cURL | ||
$url | string | |
$options | array | |
Résultat | cURL |