You can fine-tune the data
you want to receive using response groups (a response group is a set of information about the
product).
CHAPTER 22 ?– USING AMAZON.COM WEB SERVICES 670
?– Note At the time of writing, AWS lists more than 35 possible response groups. In this book, we??™ll explain
the purpose of only those response groups we??™re using for TShirtShop; for the complete list, visit the AWS
documentation.
So, let??™s ask for some more data by using response groups. At the end of the link you
composed earlier, add the following string to get more specific information about the book:
&ResponseGroup=Request,SalesRank,Small,Images,VariationSummary. The complete link
should look like this:
http://webservices.amazon.com/onca/xml?Service=AWSECommerceService
&AWSAccessKeyId=[Your Access Key ID]
&Operation=ItemLookup
&IdType=ASIN
&ItemId=1590598644
&ResponseGroup=Request,SalesRank,Small,Images,VariationSummary
The new XML response from Amazon.com includes more details about the Amazon.com
item, as shown in Figure 22-4.
Figure 22-4. The XML response of an Amazon.com web service request
CHAPTER 22 ?– USING AMAZON.COM WEB SERVICES 671
We have just mixed five response groups: Request, SalesRank, Small, Images, and OfferSummary.
To learn more about the response groups, go to http://developer.amazonwebservices.com/
connect/kbcategory.jspa?categoryID=5, and click the Latest Tech.
Pages:
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785