-
Notifications
You must be signed in to change notification settings - Fork 13
fix VariationAttributes type location #39
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
fix VariationAttributes type location #39
Conversation
@spiegel-im-spiegel , please review this tiny and straightforward PR when you have a chance |
} | ||
Offers *struct { | ||
VariationAttributes []VariationAttribute `json:",omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the outer level member is VariationSummary
.
@@ -182,9 +182,9 @@ type Item struct { | |||
Currency string | |||
} | |||
} `json:",omitempty"` | |||
VariationAttributes []VariationAttribute `json:",omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This member needs to stay. Their schema doesn't include it, but glance at the sample responses in the documentation. It includes it there and I'm able to get information by testing locally as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, VariationAttributes is under the VariationsResult.Items[i] and not under VariationsResult.Items[i].ItemInfo in the sample response
Disregard comments. This looks good to me. |
Sorry for the late response. I’ve merged the request you sent. Thank you. |
Thank you @spiegel-im-spiegel ! Have a good one! |
Hey mate!
Thanks for sharing this SDK - it is very useful as I don't need to duplicate all the code for interacting with Amazon PA API in my project.
However, I've noted one issue that blocks me from getting VariationAttributes data
q := query.NewGetVariations( client.Marketplace(), client.PartnerTag(), client.PartnerType(), ).ASIN(productID). EnableImages(). EnableItemInfo(). EnableOffers(). EnableVariationSummary(). ParentASIN()
I believe the issue is that the entity/entity.go type is not compatible with Amazon PA API response structure.
Current type VariationAttributes type location:
Item.ItemInfo.VariationAttributes
GetVariation operation VariationAttributes type location:
Item.VariationAttributes
Please, see:
https://webservices.amazon.com/paapi5/documentation/get-variations.html