I have recently added an Amazon::Ecs.item_search search to my website. I understand that I am limited to getting 10 items per page for up to 5 pages. Is there any way to get all 50 of these products in one call instead of having to call the API 5 times, getting 10 products each time? Required preprocessing forces me to get all the products before I can display any of them. Getting all of them at once would be more efficient for me, for Amazon and for my users.
Here is my call to their service:
results = Amazon::Ecs.item_search(query_text, {:search_index => 'All', :response_group=>'ItemAttributes,Images,Offers', :item_page=>’1’})
I repeat the above four more times, incrementing the page number each time.
Please feel free to ask questions or to make suggestions as to how I can improve this question.
Aucun commentaire:
Enregistrer un commentaire