setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $apiInstance->getBrowseNodes($getBrowseNodesRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetBrowseNodes_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $apiInstance->getBrowseNodes($getBrowseNodesRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetBrowseNodesWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $apiInstance->getBrowseNodesWithHttpInfo($getBrowseNodesRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetBrowseNodesWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $apiInstance->getBrowseNodesWithHttpInfo($getBrowseNodesRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetBrowseNodesAsync_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $promise = $apiInstance->getBrowseNodesAsync($getBrowseNodesRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetBrowseNodesAsync_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_SECRET_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $promise = $apiInstance->getBrowseNodesAsync($getBrowseNodesRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetBrowseNodesAsyncWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $promise = $apiInstance->getBrowseNodesAsyncWithHttpInfo($getBrowseNodesRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetBrowseNodesAsyncWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getBrowseNodesRequest = new GetBrowseNodesRequest(); $promise = $apiInstance->getBrowseNodesAsyncWithHttpInfo($getBrowseNodesRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetItems_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $apiInstance->getItems($getItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetItems_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $apiInstance->getItems($getItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetItemsWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $apiInstance->getItemsWithHttpInfo($getItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetItemsWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $apiInstance->getItemsWithHttpInfo($getItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetItemsAsync_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $promise = $apiInstance->getItemsAsync($getItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetItemsAsync_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $promise = $apiInstance->getItemsAsync($getItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetItemsAsyncWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $promise = $apiInstance->getItemsAsyncWithHttpInfo($getItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetItemsAsyncWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getItemsRequest = new GetItemsRequest(); $promise = $apiInstance->getItemsAsyncWithHttpInfo($getItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetVariations_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $apiInstance->getVariations($getVariationsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetVariations_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $apiInstance->getVariations($getVariationsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetVariationsWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $apiInstance->getVariationsWithHttpInfo($getVariationsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetVariationsWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $apiInstance->getVariationsWithHttpInfo($getVariationsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetVariationsAsync_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $promise = $apiInstance->getVariationsAsync($getVariationsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetVariationsAsync_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $promise = $apiInstance->getVariationsAsync($getVariationsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testGetVariationsAsyncWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $promise = $apiInstance->getVariationsAsyncWithHttpInfo($getVariationsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testGetVariationsAsyncWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $getVariationsRequest = new GetVariationsRequest(); $promise = $apiInstance->getVariationsAsyncWithHttpInfo($getVariationsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testSearchItems_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new SearchItemsRequest(); $apiInstance->searchItems($searchItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testSearchItems_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new SearchItemsRequest(); $apiInstance->searchItems($searchItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testSearchItemsWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new SearchItemsRequest(); $apiInstance->searchItemsWithHttpInfo($searchItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testSearchItemsWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new SearchItemsRequest(); $apiInstance->searchItemsWithHttpInfo($searchItemsRequest); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testSearchItemsAsync_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new searchItemsRequest(); $promise = $apiInstance->searchItemsAsync($searchItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testSearchItemsAsync_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new searchItemsRequest(); $promise = $apiInstance->searchItemsAsync($searchItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } public function testSearchItemsAsyncWithHttpInfo_InvalidSignature() { $config = new Configuration(); $config->setHost(self::ANY_HOST); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new searchItemsRequest(); $promise = $apiInstance->searchItemsAsyncWithHttpInfo($searchItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::INVALID_SIGNATURE); } } public function testSearchItemsAsyncWithHttpInfo_UnrecognizedClient() { $config = new Configuration(); $config->setAccessKey(self::DUMMY_ACCESS_KEY); $config->setSecretKey(self::DUMMY_SECRET_KEY); $config->setHost(self::ANY_HOST); $config->setRegion(self::ANY_REGION); $apiInstance = new DefaultApi(new GuzzleHttp\Client(), $config); try { $searchItemsRequest = new searchItemsRequest(); $promise = $apiInstance->searchItemsAsyncWithHttpInfo($searchItemsRequest); $promise->wait(); $promise->then( function (\Exception $exception) { throw $exception; } ); } catch (ApiException $exception) { assert($exception->getCode() === 401); assert($exception->getResponseObject()->getErrors()[0]->getCode() === self::UNRECOGNIZED_CLIENT); } } }