Overtrue\Socialite\Providers\QQProvider::getAccessToken PHP Méthode

getAccessToken() public méthode

Get the access token for the given code.
public getAccessToken ( string $code ) : AccessToken
$code string
Résultat Overtrue\Socialite\AccessToken
    public function getAccessToken($code)
    {
        $response = $this->getHttpClient()->get($this->getTokenUrl(), ['query' => $this->getTokenFields($code)]);
        return $this->parseAccessToken($response->getBody()->getContents());
    }