How to get book cover picture through amazon API [duplicate]
Asked Answered
D

1

9

I want to get the cover of a book form its ASIN through Amazon API. I use the ItemLookup function, but I only get the author, manufacturer and the title.

ie :

<ItemAttributes>
<Author>Anna Gavalda</Author>
<Manufacturer>J'Ai Lu</Manufacturer>
<ProductGroup>Book</ProductGroup>
<Title>Ensemble, C'Est Tout (French Edition)</Title>
</ItemAttributes>
Dumanian answered 18/5, 2009 at 8:48 Comment(3)
Check the MSDN - blogs.msdn.com/coding4fun/archive/2006/10/31/912260.aspxBenefield
See #433604 Also, interesting article about using Amazon images here: bibwild.wordpress.com/2008/03/19/…Electrotherapy
Use the Images Product Group in the Amazon Product Advertising API.Gherardi
C
0

You can try this:

$track=$_GET['title'];

// Call To Amazon Predefined Class
$client = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'com', AWS_ASSOCIATE_TAG);
$response = $client->category('Books')->responseGroup('Images,Reviews,ItemAttributes,OfferSummary')->search($track);

// To Get Image
<img src="<?php echo $response->Items->Item[0]->LargeImage->URL ?>" width="233" height="300">
Constrained answered 8/4, 2013 at 7:25 Comment(1)
I don't think php was ever mentionedSansen

© 2022 - 2024 — McMap. All rights reserved.