Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.0

Request #10687 set array for SimilarityLookup
Submitted: 2007-04-11 09:40 UTC
From: takuya1st Assigned: ttsuruoka
Status: Closed Package: Services_Amazon (version 0.7.0)
PHP Version: 5.1.6 OS:
Roadmaps: (Not assigned)    

 [2007-04-11 09:40 UTC] takuya1st (Takuya Morioka)
Description: ------------ i read AmaoznECS Document , and find this sentence "Up to ten ASINs in a comma-separated list for REST requests or in multiple ItemId elements for SOAP requests." but in Services_Amazon, i cant set Array for SimilarityLookup method. can i set array of item_ids for Services_AmazonECS4::SimilarityLookup().


 [2007-04-11 09:59 UTC] takuya1st (Takuya Morioka)
i wrote patch function SimilarityLookup($item_id, $options = array()) { + if(is_array($item_id)){ + $item_id = implode(",", $item_id); + } $params = $options; $params['Operation'] = 'SimilarityLookup'; $params['ItemId'] = $item_id; return $this->_sendRequest($params); }
 [2007-04-11 11:05 UTC] ttsuruoka (Tatsuya Tsuruoka)
This has been fixed in CVS. diff to previous: Thanks!