Overtrue\Socialite\Providers\QQProvider::getAccessToken PHP Method

getAccessToken() public method

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