Property | Type | Description | |
---|---|---|---|
$client_id | |||
$client_secret | |||
$errorAccessDeniedCode | |||
$jsArguments | |||
$name | |||
$providerOptions | |||
$scope | |||
$team | |||
$title | |||
$type |
Method | 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. |
return | 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. |
return | string | url to request. |
protected getSignedRequestFields ( ) : array | ||
return | array |
protected initRequest ( string $url, array $options = [] ) : cURL | ||
$url | string | |
$options | array | |
return | cURL |