Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find only books w/images #16

Closed
tibbon opened this issue Aug 8, 2012 · 1 comment
Closed

Find only books w/images #16

tibbon opened this issue Aug 8, 2012 · 1 comment

Comments

@tibbon
Copy link

tibbon commented Aug 8, 2012

Using code like the following, I'm pulling down a list of books.

t = tags.collect {|x| x.name}
client = ASIN::Client.instance
books = (client.search_keywords t)

Works great, except that sometimes it grabs a book like this one: http://www.amazon.com/Lasers-Lynn-Myring/dp/0613769902%3FSubscriptionId%3DAKIAINAJKLF3WOPY77OA%26tag%3Dwha07-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3D0613769902

which doesn't have an image, so it displays poorly on my page. I could set a 'default' image, but overall, I'd just rather not retrieve ones without an image. Is this possible, or does the Amazon API (or the gem) not allow that?

@phoet
Copy link
Owner

phoet commented Aug 8, 2012

i don't think it's possible to filter for such a condition, but have a look at the API and find out yourself: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/ItemSearch.html

all optional parameters can be passed into the search-methods, so you are free to use every API parameter you like!

@phoet phoet closed this as completed Aug 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants