go-amazon-product-advertising-api icon indicating copy to clipboard operation
go-amazon-product-advertising-api copied to clipboard

Always return an ItemLookupResponse object

Open vteromero opened this issue 7 years ago • 0 comments

This is a proposal to change the response of the ItemLookupRequest.Do function when it gets a error, so that the function would always return an ItemLookupResponse object instead of a nil value as it does now.

This will fix the particular problem of calling the Do function to lookup several items in which some of them have an invalid ASIN code. In this case, Amazon will still send back the data for the "good" items, so we are losing that information by returning nil.

vteromero avatar Oct 24 '17 15:10 vteromero