Class: MuffinMan::CustomerFeedback::V20240601
Constant Summary
collapse
- CUSTOMER_FEEDBACK_PATH =
"/customerFeedback/2024-06-01"
Constants inherited
from SpApiClient
SpApiClient::ACCESS_TOKEN_URL, SpApiClient::AWS_REGION_MAP, SpApiClient::SERVICE_NAME, SpApiClient::UNPROCESSABLE_ENTITY_STATUS_CODE
Instance Attribute Summary
Attributes inherited from SpApiClient
#access_token_cache_key, #aws_access_key_id, #aws_secret_access_key, #client_id, #client_secret, #config, #credentials, #local_var_path, #pii_data_elements, #query_params, #refresh_token, #region, #request_body, #request_type, #sandbox, #scope, #sts_iam_role_arn
Instance Method Summary
collapse
-
#get_browse_node(asin, marketplace_id, params = {}) ⇒ Object
-
#get_browse_node_return_topics(browse_node, sort_type, marketplace_id, params = {}) ⇒ Object
-
#get_browse_node_return_trends(browse_node, marketplace_id, params = {}) ⇒ Object
-
#get_browse_node_review_topics(browse_node, sort_type, marketplace_id, params = {}) ⇒ Object
-
#get_browse_node_review_trends(browse_node, marketplace_id, params = {}) ⇒ Object
-
#get_item_review_topics(asin, sort_type, marketplace_id, params = {}) ⇒ Object
-
#get_item_review_trends(asin, marketplace_id, params = {}) ⇒ Object
Methods inherited from SpApiClient
#initialize
Instance Method Details
#get_browse_node(asin, marketplace_id, params = {}) ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 27
def get_browse_node(asin, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/items/#{asin}/browseNode"
@query_params = {
"marketplaceId" => marketplace_id
}.merge(params)
@request_type = "GET"
call_api
end
|
#get_browse_node_return_topics(browse_node, sort_type, marketplace_id, params = {}) ⇒ Object
55
56
57
58
59
60
61
62
63
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 55
def get_browse_node_return_topics(browse_node, sort_type, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/returns/topics"
@query_params = {
"marketplaceId" => marketplace_id,
"sortBy" => sort_type
}.merge(params)
@request_type = "GET"
call_api
end
|
#get_browse_node_return_trends(browse_node, marketplace_id, params = {}) ⇒ Object
65
66
67
68
69
70
71
72
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 65
def get_browse_node_return_trends(browse_node, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/returns/trends"
@query_params = {
"marketplaceId" => marketplace_id
}.merge(params)
@request_type = "GET"
call_api
end
|
#get_browse_node_review_topics(browse_node, sort_type, marketplace_id, params = {}) ⇒ Object
36
37
38
39
40
41
42
43
44
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 36
def get_browse_node_review_topics(browse_node, sort_type, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/reviews/topics"
@query_params = {
"marketplaceId" => marketplace_id,
"sortBy" => sort_type
}.merge(params)
@request_type = "GET"
call_api
end
|
#get_browse_node_review_trends(browse_node, marketplace_id, params = {}) ⇒ Object
46
47
48
49
50
51
52
53
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 46
def get_browse_node_review_trends(browse_node, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/browseNodes/#{browse_node}/reviews/trends"
@query_params = {
"marketplaceId" => marketplace_id
}.merge(params)
@request_type = "GET"
call_api
end
|
#get_item_review_topics(asin, sort_type, marketplace_id, params = {}) ⇒ Object
8
9
10
11
12
13
14
15
16
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 8
def get_item_review_topics(asin, sort_type, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/items/#{asin}/reviews/topics"
@query_params = {
"marketplaceId" => marketplace_id,
"sortBy" => sort_type
}.merge(params)
@request_type = "GET"
call_api
end
|
#get_item_review_trends(asin, marketplace_id, params = {}) ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/muffin_man/customer_feedback/v20240601.rb', line 18
def get_item_review_trends(asin, marketplace_id, params = {})
@local_var_path = "#{CUSTOMER_FEEDBACK_PATH}/items/#{asin}/reviews/trends"
@query_params = {
"marketplaceId" => marketplace_id
}.merge(params)
@request_type = "GET"
call_api
end
|