public function runOperation(OperationInterface $operation) { $request = $this->configuration->getRequest(); $response = $request->perform($operation, $this->configuration); return $this->applyResponseTransformer($response); }
/** * @param $asin * @return mixed * @throws \Exception */ protected function runImageLookup($asin) { $lookup = new Lookup(); $lookup->setItemId($asin); $lookup->setResponseGroup(array('Images')); return $this->apaiIO->runOperation($lookup); }