public function getAccessToken($code)
{
$response = $this->getHttpClient()->post($this->getTokenUrl(), ['headers' => ['Authorization' => 'Basic ' . base64_encode($this->clientId . ':' . $this->clientSecret)], 'form_params' => $this->getTokenFields($code)]);
return $this->parseAccessToken($response->getBody());
}