public function getAccessToken($code) { $response = $this->getHttpClient()->get($this->getTokenUrl(), ['query' => $this->getTokenFields($code)]); return $this->parseAccessToken($response->getBody()->getContents()); }