Entries
Images Response Groupについて
ここのサイトはほぼ画像のレスポンスだけで
構成されるので、Images Response Groupの詳細について記載してます。
The Images response group returns the URLs to all available images of an item in three sizes: small, medium, and large. For example, if a blender is for sale and there are four images of it, this response group returns the URLs of twelve images: four images, each in three sizes.
画像のURLを返しますとさ。small, medium, largeの3種類。4枚画像あったら、12種類あるわけさ。
In addition to returning the URLs of the images, the response groups also returns the height and width dimensions of each image. Use these values to help you display the images correctly.
URLのほかにも、画像のheightとwidthを返すから、しっかり使えばしっかり表示されるっちゃ。
ふーん。
The images returned are associated with the merchant selling the item. For that reason, you must specify the merchant ID in the request when you use the Images response group. MerchantId, however, defaults to "Amazon." So, if the item is being sold by Amazon, specifying a MerchantId is not required. If you do not specify a MerchantId and a merchant other than Amazon is selling the item, ECS will not return images.
associatedタグついてっから、大丈夫さ。
へぇ。
<SearchIndex>
<IndexName>DVD</IndexName>
<Results>7</Results>
<Pages>3</Pages>
<RelevanceRank>2</RelevanceRank>
<ASIN>B00005TNFV</ASIN>
<ASIN>B0002NRRBA</ASIN>
<ASIN>B000A2XB9U</ASIN>
</SearchIndex>
<Item>
<ASIN>B00005TNFV</ASIN>
<SmallImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCTHUMBZZZ_.jpg</URL>
<Height Units="pixels">60</Height>
<Width Units="pixels">43</Width>
</SmallImage>
<MediumImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCMZZZZZZZ_.jpg</URL>
<Height Units="pixels">140</Height>
<Width Units="pixels">99</Width>
</MediumImage>
<LargeImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCLZZZZZZZ_.jpg</URL>
<Height Units="pixels">475</Height>
<Width Units="pixels">336</Width>
</LargeImage>
<ImageSets>
<ImageSet Category="primary">
<SmallImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCTHUMBZZZ_.jpg</URL>
<Height Units="pixels">60</Height>
<Width Units="pixels">43</Width>
</SmallImage>
aws:LargeImage/aws:URL、aws:ItemAttributes/aws:Title、aws:DetailPageURL
このあたりを利用して、画像のリンクを生成してあげれば、
終わりです。
サンプルのxslは←のジャケット検索にあります。
ここのサイトはほぼ画像のレスポンスだけで
構成されるので、Images Response Groupの詳細について記載してます。
The Images response group returns the URLs to all available images of an item in three sizes: small, medium, and large. For example, if a blender is for sale and there are four images of it, this response group returns the URLs of twelve images: four images, each in three sizes.
画像のURLを返しますとさ。small, medium, largeの3種類。4枚画像あったら、12種類あるわけさ。
In addition to returning the URLs of the images, the response groups also returns the height and width dimensions of each image. Use these values to help you display the images correctly.
URLのほかにも、画像のheightとwidthを返すから、しっかり使えばしっかり表示されるっちゃ。
ふーん。
The images returned are associated with the merchant selling the item. For that reason, you must specify the merchant ID in the request when you use the Images response group. MerchantId, however, defaults to "Amazon." So, if the item is being sold by Amazon, specifying a MerchantId is not required. If you do not specify a MerchantId and a merchant other than Amazon is selling the item, ECS will not return images.
associatedタグついてっから、大丈夫さ。
へぇ。
<SearchIndex>
<IndexName>DVD</IndexName>
<Results>7</Results>
<Pages>3</Pages>
<RelevanceRank>2</RelevanceRank>
<ASIN>B00005TNFV</ASIN>
<ASIN>B0002NRRBA</ASIN>
<ASIN>B000A2XB9U</ASIN>
</SearchIndex>
<Item>
<ASIN>B00005TNFV</ASIN>
<SmallImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCTHUMBZZZ_.jpg</URL>
<Height Units="pixels">60</Height>
<Width Units="pixels">43</Width>
</SmallImage>
<MediumImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCMZZZZZZZ_.jpg</URL>
<Height Units="pixels">140</Height>
<Width Units="pixels">99</Width>
</MediumImage>
<LargeImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCLZZZZZZZ_.jpg</URL>
<Height Units="pixels">475</Height>
<Width Units="pixels">336</Width>
</LargeImage>
<ImageSets>
<ImageSet Category="primary">
<SmallImage>
<URL>http://ec1.images-amazon.com/images/P/B00005TNFV.01._SCTHUMBZZZ_.jpg</URL>
<Height Units="pixels">60</Height>
<Width Units="pixels">43</Width>
</SmallImage>
aws:LargeImage/aws:URL、aws:ItemAttributes/aws:Title、aws:DetailPageURL
このあたりを利用して、画像のリンクを生成してあげれば、
終わりです。
サンプルのxslは←のジャケット検索にあります。
- AWSや技術情報についてのジャケット画像をもっと見る
-
- コメント : 0
- トラックバック : 0
- 2008年06月02日(月) 21:52
0件のコメント
コメントの投稿
0件のトラックバック
- トラックバックURL
- http://jacketj.blog45.fc2.com/tb.php/459-4d4c84ed
- この記事に対してトラックバックを送信する(FC2ブログユーザー)
























