Protected Member Functions | |
fetchAttributes () | |
getTokenUrl ($code) | |
getAccessToken ($code) | |
getCodeUrl ($redirect_uri) | |
fetchJsonError ($json) | |
![]() | |
saveAccessToken ($token) | |
restoreAccessToken () | |
![]() | |
makeRequest ($url, $options=array(), $parseJson=true) | |
initRequest ($url, $options=array()) | |
parseJson ($response) | |
getStateKeyPrefix () | |
setState ($key, $value, $defaultValue=null) | |
hasState ($key) | |
getState ($key, $defaultValue=null) | |
_fetchAttributes () |
Protected Attributes | |
$name = 'odnoklassniki' | |
$title = 'Odnoklassniki' | |
$type = 'OAuth' | |
$jsArguments = array('popup' => array('width' => 680, 'height' => 500)) | |
$client_id = '' | |
$client_secret = '' | |
$client_public = '' | |
$scope = '' | |
$providerOptions | |
![]() | |
$client_id | |
$client_secret | |
$scope = '' | |
$providerOptions | |
$access_token = '' | |
![]() | |
$name | |
$title | |
$type | |
$jsArguments = array() | |
$attributes = array() | |
$authenticated = false |
Additional Inherited Members | |
![]() | |
authenticate () | |
makeSignedRequest ($url, $options=array(), $parseJson=true) |
Definition at line 18 of file OdnoklassnikiOAuthService.php.
|
protected |
Fetch attributes array.
Reimplemented from EAuthServiceBase.
Reimplemented in CustomOdnoklassnikiService.
Definition at line 34 of file OdnoklassnikiOAuthService.php.
References EAuthServiceBase\makeRequest().
|
protected |
Returns the error info from json.
stdClass | $json | the json response. |
Reimplemented from EAuthServiceBase.
Definition at line 82 of file OdnoklassnikiOAuthService.php.
|
protected |
Returns the OAuth2 access token.
string | $code | the OAuth2 code. See getCodeUrl. |
Reimplemented from EOAuth2Service.
Definition at line 56 of file OdnoklassnikiOAuthService.php.
References EAuthServiceBase\getState(), getTokenUrl(), and EAuthServiceBase\makeRequest().
|
protected |
Returns the url to request to get OAuth2 code.
string | $redirect_uri | url to redirect after user confirmation. |
Reimplemented from EOAuth2Service.
Definition at line 69 of file OdnoklassnikiOAuthService.php.
References EAuthServiceBase\setState().
|
protected |
Returns the url to request to get OAuth2 access token.
Reimplemented from EOAuth2Service.
Definition at line 52 of file OdnoklassnikiOAuthService.php.
Referenced by getAccessToken().
|
protected |
Definition at line 29 of file OdnoklassnikiOAuthService.php.