authData; } $actualParams = array_merge([ 'ApiUser' => $authData['ApiUser'], 'ApiKey' => $authData['ApiKey'] ], $parameters); $response = $this->client->request('POST', BASE_URL, [ 'query' => $actualParams ]); $data = new \SimpleXMLElement($response->getContent()); if ($data->errors->error) { throw new \Exception(implode(', ', $data->errors->error)); // FIXME better exception type } return $data->CommandResponse; } public static function verifyAuthData(array $authData, HttpClientInterface $client): array { } }