guzzleHttpClient = new Client(); $this->openApiClientConfiguration = new Configuration(); $this->openApiClientFile = new FilesApi(); } public function test() { $config = $this->openApiClientConfiguration::getDefaultConfiguration() ->setUsername('admin') ->setPassword('admin') ->setHost('http://localhost:8080'); $apiInstance = new $this->openApiClientFile( $this->guzzleHttpClient, $config ); try { $result = $apiInstance->filesList(); print_r($result); } catch (Exception $e) { echo 'Exception when calling FilesApi->filesList: ', $e->getMessage(), PHP_EOL; } } }