go-amazon-product-advertising-api
go-amazon-product-advertising-api copied to clipboard
Always return an ItemLookupResponse object
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.