Class: Peddler::APIs::CustomerFeedback20240601
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::CustomerFeedback20240601
- Defined in:
- lib/peddler/apis/customer_feedback_2024_06_01.rb
Overview
The Selling Partner API for CustomerFeedback
The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#get_browse_node_return_topics(browse_node_id, marketplace_id) ⇒ Peddler::Response
Retrieve the topics that customers mention when they return items in a browse node.
-
#get_browse_node_return_trends(browse_node_id, marketplace_id) ⇒ Peddler::Response
Retrieve the trends of topics that customers mention when they return items in a browse node.
-
#get_browse_node_review_topics(browse_node_id, marketplace_id, sort_by) ⇒ Peddler::Response
Retrieve a browse node’s ten most positive and ten most negative review topics.
-
#get_browse_node_review_trends(browse_node_id, marketplace_id) ⇒ Peddler::Response
Retrieve the positive and negative review trends of items in a browse node for the past six months.
-
#get_item_browse_node(asin, marketplace_id) ⇒ Peddler::Response
This API returns the associated browse node of the requested ASIN.
-
#get_item_review_topics(asin, marketplace_id, sort_by) ⇒ Peddler::Response
Retrieve an item’s ten most positive and ten most negative review topics.
-
#get_item_review_trends(asin, marketplace_id) ⇒ Peddler::Response
Retrieve an item’s positive and negative review trends for the past six months.
Methods inherited from Peddler::API
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #typed, #typed?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#get_browse_node_return_topics(browse_node_id, marketplace_id) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve the topics that customers mention when they return items in a browse node.
120 121 122 123 124 125 126 127 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 120 def get_browse_node_return_topics(browse_node_id, marketplace_id) path = "/customerFeedback/2024-06-01/browseNodes/#{percent_encode(browse_node_id)}/returns/topics" params = { "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::CustomerFeedback20240601::BrowseNodeReturnTopicsResponse if typed? get(path, params:, parser:) end |
#get_browse_node_return_trends(browse_node_id, marketplace_id) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve the trends of topics that customers mention when they return items in a browse node.
137 138 139 140 141 142 143 144 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 137 def get_browse_node_return_trends(browse_node_id, marketplace_id) path = "/customerFeedback/2024-06-01/browseNodes/#{percent_encode(browse_node_id)}/returns/trends" params = { "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::CustomerFeedback20240601::BrowseNodeReturnTrendsResponse if typed? get(path, params:, parser:) end |
#get_browse_node_review_topics(browse_node_id, marketplace_id, sort_by) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve a browse node’s ten most positive and ten most negative review topics.
68 69 70 71 72 73 74 75 76 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 68 def get_browse_node_review_topics(browse_node_id, marketplace_id, sort_by) path = "/customerFeedback/2024-06-01/browseNodes/#{percent_encode(browse_node_id)}/reviews/topics" params = { "marketplaceId" => marketplace_id, "sortBy" => sort_by, }.compact parser = Peddler::Types::CustomerFeedback20240601::BrowseNodeReviewTopicsResponse if typed? get(path, params:, parser:) end |
#get_browse_node_review_trends(browse_node_id, marketplace_id) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve the positive and negative review trends of items in a browse node for the past six months.
103 104 105 106 107 108 109 110 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 103 def get_browse_node_review_trends(browse_node_id, marketplace_id) path = "/customerFeedback/2024-06-01/browseNodes/#{percent_encode(browse_node_id)}/reviews/trends" params = { "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::CustomerFeedback20240601::BrowseNodeReviewTrendsResponse if typed? get(path, params:, parser:) end |
#get_item_browse_node(asin, marketplace_id) ⇒ Peddler::Response
This operation can make a static sandbox call.
This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
50 51 52 53 54 55 56 57 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 50 def get_item_browse_node(asin, marketplace_id) path = "/customerFeedback/2024-06-01/items/#{percent_encode(asin)}/browseNode" params = { "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::CustomerFeedback20240601::BrowseNodeResponse if typed? get(path, params:, parser:) end |
#get_item_review_topics(asin, marketplace_id, sort_by) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve an item’s ten most positive and ten most negative review topics.
31 32 33 34 35 36 37 38 39 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 31 def get_item_review_topics(asin, marketplace_id, sort_by) path = "/customerFeedback/2024-06-01/items/#{percent_encode(asin)}/reviews/topics" params = { "marketplaceId" => marketplace_id, "sortBy" => sort_by, }.compact parser = Peddler::Types::CustomerFeedback20240601::ItemReviewTopicsResponse if typed? get(path, params:, parser:) end |
#get_item_review_trends(asin, marketplace_id) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve an item’s positive and negative review trends for the past six months.
86 87 88 89 90 91 92 93 |
# File 'lib/peddler/apis/customer_feedback_2024_06_01.rb', line 86 def get_item_review_trends(asin, marketplace_id) path = "/customerFeedback/2024-06-01/items/#{percent_encode(asin)}/reviews/trends" params = { "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::CustomerFeedback20240601::ItemReviewTrendsResponse if typed? get(path, params:, parser:) end |