EOAuth2Service::getAccessToken PHP Méthode

getAccessToken() protected méthode

Returns the OAuth2 access token.
protected getAccessToken ( string $code ) : string
$code string the OAuth2 code. See {@link getCodeUrl}.
Résultat string the token.
    protected function getAccessToken($code)
    {
        return $this->makeRequest($this->getTokenUrl($code));
    }

Usage Example

Exemple #1
0
 protected function getAccessToken($code)
 {
     $result = parent::getAccessToken($code);
     $this->setState('uid', $result->user_id);
     return $result->access_token;
 }