/** * @return TokenResponse */ public function send() { $url = $this->serverConfig->getParams()['token_endpoint']; $response = $this->httpClient->request('POST', $url, ['multipart' => $this->getParams(), 'auth' => [$this->clientConfig->getParams()['client_id'], $this->clientConfig->getParams()['client_password']]]); return new TokenResponse($response); }
/** * @return TokenResponse */ public function send() { $url = $this->serverConfig->getParams()['token_endpoint']; $response = $this->httpClient->request('POST', $url, ['multipart' => $this->getParams()]); return new TokenResponse($response); }
/** * @return string */ private function getTokenEndpoint() { return vsprintf('%s%s', [$this->httpClient->getConfig('base_uri'), $this->serverConfig->getParams()['token_endpoint']]); }
/** * @return string */ private function getTokenEndpoint() { return vsprintf('%s%s', [$this->apiBaseUrl, $this->serverConfig->getParams()['token_endpoint']]); }