Skip to content

Commit

Permalink
Adds editorial reviews to the Item response struct
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatz committed Feb 27, 2018
1 parent 6156620 commit 6e338c8
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions amazon/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,33 @@ type Items struct {

// Item represents item
type Item struct {
XMLName xml.Name `xml:"Item"`
ASIN string
DetailPageURL string
SalesRank int
ItemLinks ItemLinks
SmallImage Image
MediumImage Image
LargeImage Image
ImageSets ImageSets
ItemAttributes ItemAttributes
OfferSummary OfferSummary
Offers Offers
CustomerReviews CustomerReviews
SimilarProducts SimilarProducts
BrowseNodes BrowseNodes
XMLName xml.Name `xml:"Item"`
ASIN string
DetailPageURL string
SalesRank int
ItemLinks ItemLinks
SmallImage Image
MediumImage Image
LargeImage Image
ImageSets ImageSets
ItemAttributes ItemAttributes
EditorialReviews EditorialReviews
OfferSummary OfferSummary
Offers Offers
CustomerReviews CustomerReviews
SimilarProducts SimilarProducts
BrowseNodes BrowseNodes
}

// EditorialReviews response group
type EditorialReviews struct {
EditorialReview EditorialReview
}

// EditorialReview response attribute
type EditorialReview struct {
Source string
Content string
}

// ItemLinks represents ItemLinks
Expand Down

0 comments on commit 6e338c8

Please sign in to comment.