/** * This function will get the processing results of a feed previously sent to Amazon and give the data. * In order to do this, a feed ID is required. The response is in XML. */ function getFeedResult($feedId) { try { $amz = new AmazonFeedResult("myStore", $feedId); //feed ID can be quickly set by passing it to the constructor $amz->setFeedId($feedId); //otherwise, it must be set this way $amz->fetchFeedResult(); return $amz->getRawFeed(); } catch (Exception $ex) { echo 'There was a problem with the Amazon library. Error: ' . $ex->getMessage(); } }