scrapebadger 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +548 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +76 -0
- data/docs/AccountInfo.md +28 -0
- data/docs/AmazonApi.md +1244 -0
- data/docs/ApartmentsApi.md +373 -0
- data/docs/BaiduApi.md +447 -0
- data/docs/BillingLogListResponse.md +24 -0
- data/docs/BillingLogResponse.md +32 -0
- data/docs/BingApi.md +610 -0
- data/docs/ChatGPTApi.md +521 -0
- data/docs/DepopApi.md +542 -0
- data/docs/DuckDuckGoApi.md +700 -0
- data/docs/EBayApi.md +1019 -0
- data/docs/FacebookApi.md +1671 -0
- data/docs/FilterRuleCreate.md +28 -0
- data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
- data/docs/FilterRuleDeliveryLogResponse.md +44 -0
- data/docs/FilterRuleListResponse.md +24 -0
- data/docs/FilterRuleResponse.md +40 -0
- data/docs/FilterRuleUpdate.md +30 -0
- data/docs/FilterRuleValidateRequest.md +18 -0
- data/docs/FilterRuleValidateResponse.md +22 -0
- data/docs/GoogleApi.md +3175 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdealistaApi.md +822 -0
- data/docs/ImmobiliareApi.md +773 -0
- data/docs/InstagramApi.md +1673 -0
- data/docs/LeboncoinApi.md +884 -0
- data/docs/LinkedInApi.md +925 -0
- data/docs/LoopNetApi.md +529 -0
- data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
- data/docs/RealtorApi.md +474 -0
- data/docs/RedditApi.md +1677 -0
- data/docs/RedfinApi.md +616 -0
- data/docs/StreamMonitorCreate.md +26 -0
- data/docs/StreamMonitorListResponse.md +24 -0
- data/docs/StreamMonitorResponse.md +42 -0
- data/docs/StreamMonitorUpdate.md +28 -0
- data/docs/SubscriptionInfo.md +40 -0
- data/docs/TikTokApi.md +2104 -0
- data/docs/TweetDeliveryLogListResponse.md +24 -0
- data/docs/TweetDeliveryLogResponse.md +44 -0
- data/docs/TwitterApi.md +4091 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VintedApi.md +766 -0
- data/docs/WalmartApi.md +904 -0
- data/docs/WebApi.md +634 -0
- data/docs/WebhookCreate.md +22 -0
- data/docs/WebhookListItem.md +28 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookResponse.md +26 -0
- data/docs/WebhookTestRequest.md +18 -0
- data/docs/WebhookTestResponse.md +24 -0
- data/docs/YahooApi.md +602 -0
- data/docs/YandexApi.md +450 -0
- data/docs/YouTubeApi.md +2872 -0
- data/docs/ZillowApi.md +622 -0
- data/git_push.sh +57 -0
- data/lib/scrapebadger/api/account_api.rb +79 -0
- data/lib/scrapebadger/api/amazon_api.rb +1165 -0
- data/lib/scrapebadger/api/apartments_api.rb +377 -0
- data/lib/scrapebadger/api/baidu_api.rb +436 -0
- data/lib/scrapebadger/api/bing_api.rb +580 -0
- data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
- data/lib/scrapebadger/api/depop_api.rb +518 -0
- data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
- data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
- data/lib/scrapebadger/api/facebook_api.rb +1492 -0
- data/lib/scrapebadger/api/google_api.rb +3191 -0
- data/lib/scrapebadger/api/idealista_api.rb +864 -0
- data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
- data/lib/scrapebadger/api/instagram_api.rb +1555 -0
- data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
- data/lib/scrapebadger/api/linked_in_api.rb +832 -0
- data/lib/scrapebadger/api/loop_net_api.rb +503 -0
- data/lib/scrapebadger/api/realtor_api.rb +481 -0
- data/lib/scrapebadger/api/reddit_api.rb +1601 -0
- data/lib/scrapebadger/api/redfin_api.rb +625 -0
- data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
- data/lib/scrapebadger/api/twitter_api.rb +3696 -0
- data/lib/scrapebadger/api/vinted_api.rb +705 -0
- data/lib/scrapebadger/api/walmart_api.rb +876 -0
- data/lib/scrapebadger/api/web_api.rb +547 -0
- data/lib/scrapebadger/api/yahoo_api.rb +560 -0
- data/lib/scrapebadger/api/yandex_api.rb +422 -0
- data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
- data/lib/scrapebadger/api/zillow_api.rb +634 -0
- data/lib/scrapebadger/api_client.rb +394 -0
- data/lib/scrapebadger/api_error.rb +58 -0
- data/lib/scrapebadger/configuration.rb +308 -0
- data/lib/scrapebadger/models/account_info.rb +288 -0
- data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/billing_log_response.rb +334 -0
- data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
- data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
- data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
- data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
- data/lib/scrapebadger/models/http_validation_error.rb +216 -0
- data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
- data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
- data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
- data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
- data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
- data/lib/scrapebadger/models/subscription_info.rb +352 -0
- data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/validation_error.rb +255 -0
- data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
- data/lib/scrapebadger/models/webhook_create.rb +282 -0
- data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
- data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
- data/lib/scrapebadger/models/webhook_response.rb +286 -0
- data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
- data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
- data/lib/scrapebadger/version.rb +15 -0
- data/lib/scrapebadger.rb +96 -0
- data/scrapebadger.gemspec +39 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/amazon_api_spec.rb +258 -0
- data/spec/api/apartments_api_spec.rb +98 -0
- data/spec/api/baidu_api_spec.rb +109 -0
- data/spec/api/bing_api_spec.rb +141 -0
- data/spec/api/chat_gpt_api_spec.rb +123 -0
- data/spec/api/depop_api_spec.rb +132 -0
- data/spec/api/duck_duck_go_api_spec.rb +162 -0
- data/spec/api/e_bay_api_spec.rb +222 -0
- data/spec/api/facebook_api_spec.rb +326 -0
- data/spec/api/google_api_spec.rb +649 -0
- data/spec/api/idealista_api_spec.rb +197 -0
- data/spec/api/immobiliare_api_spec.rb +174 -0
- data/spec/api/instagram_api_spec.rb +309 -0
- data/spec/api/leboncoin_api_spec.rb +184 -0
- data/spec/api/linked_in_api_spec.rb +197 -0
- data/spec/api/loop_net_api_spec.rb +127 -0
- data/spec/api/realtor_api_spec.rb +123 -0
- data/spec/api/reddit_api_spec.rb +331 -0
- data/spec/api/redfin_api_spec.rb +147 -0
- data/spec/api/tik_tok_api_spec.rb +413 -0
- data/spec/api/twitter_api_spec.rb +735 -0
- data/spec/api/vinted_api_spec.rb +169 -0
- data/spec/api/walmart_api_spec.rb +192 -0
- data/spec/api/web_api_spec.rb +136 -0
- data/spec/api/yahoo_api_spec.rb +137 -0
- data/spec/api/yandex_api_spec.rb +111 -0
- data/spec/api/you_tube_api_spec.rb +500 -0
- data/spec/api/zillow_api_spec.rb +150 -0
- data/spec/models/account_info_spec.rb +66 -0
- data/spec/models/billing_log_list_response_spec.rb +54 -0
- data/spec/models/billing_log_response_spec.rb +78 -0
- data/spec/models/filter_rule_create_spec.rb +66 -0
- data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
- data/spec/models/filter_rule_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_response_spec.rb +102 -0
- data/spec/models/filter_rule_update_spec.rb +72 -0
- data/spec/models/filter_rule_validate_request_spec.rb +36 -0
- data/spec/models/filter_rule_validate_response_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
- data/spec/models/stream_monitor_create_spec.rb +60 -0
- data/spec/models/stream_monitor_list_response_spec.rb +54 -0
- data/spec/models/stream_monitor_response_spec.rb +108 -0
- data/spec/models/stream_monitor_update_spec.rb +66 -0
- data/spec/models/subscription_info_spec.rb +102 -0
- data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +48 -0
- data/spec/models/webhook_list_item_spec.rb +66 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +60 -0
- data/spec/models/webhook_test_request_spec.rb +36 -0
- data/spec/models/webhook_test_response_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +324 -0
|
@@ -0,0 +1,876 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#ScrapeBadger API
|
|
3
|
+
|
|
4
|
+
#Unified credit-based scraping API. https://docs.scrapebadger.com
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 0.1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module ScrapeBadger
|
|
16
|
+
class WalmartApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Browse a category
|
|
23
|
+
# Browse a Walmart category. Same result shape as search. No `sort`: Walmart's browse pages ignore it. Sort on `/search` instead.
|
|
24
|
+
# @param path [String] Browse path, e.g. 'electronics/3944', or a '/cp/...' path
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @option opts [Integer] :page (default to 1)
|
|
27
|
+
# @option opts [Float] :min_price
|
|
28
|
+
# @option opts [Float] :max_price
|
|
29
|
+
# @option opts [String] :facet
|
|
30
|
+
# @return [Object]
|
|
31
|
+
def walmart_browse_a_category(path, opts = {})
|
|
32
|
+
data, _status_code, _headers = walmart_browse_a_category_with_http_info(path, opts)
|
|
33
|
+
data
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Browse a category
|
|
37
|
+
# Browse a Walmart category. Same result shape as search. No `sort`: Walmart's browse pages ignore it. Sort on `/search` instead.
|
|
38
|
+
# @param path [String] Browse path, e.g. 'electronics/3944', or a '/cp/...' path
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [Integer] :page (default to 1)
|
|
41
|
+
# @option opts [Float] :min_price
|
|
42
|
+
# @option opts [Float] :max_price
|
|
43
|
+
# @option opts [String] :facet
|
|
44
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
45
|
+
def walmart_browse_a_category_with_http_info(path, opts = {})
|
|
46
|
+
if @api_client.config.debugging
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_browse_a_category ...'
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'path' is set
|
|
50
|
+
if @api_client.config.client_side_validation && path.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling WalmartApi.walmart_browse_a_category"
|
|
52
|
+
end
|
|
53
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 11
|
|
54
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_browse_a_category, must be smaller than or equal to 11.'
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
58
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_browse_a_category, must be greater than or equal to 1.'
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
if @api_client.config.client_side_validation && !opts[:'min_price'].nil? && opts[:'min_price'] < 0
|
|
62
|
+
fail ArgumentError, 'invalid value for "opts[:"min_price"]" when calling WalmartApi.walmart_browse_a_category, must be greater than or equal to 0.'
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
if @api_client.config.client_side_validation && !opts[:'max_price'].nil? && opts[:'max_price'] < 0
|
|
66
|
+
fail ArgumentError, 'invalid value for "opts[:"max_price"]" when calling WalmartApi.walmart_browse_a_category, must be greater than or equal to 0.'
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# resource path
|
|
70
|
+
local_var_path = '/v1/walmart/category'
|
|
71
|
+
|
|
72
|
+
# query parameters
|
|
73
|
+
query_params = opts[:query_params] || {}
|
|
74
|
+
query_params[:'path'] = path
|
|
75
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
76
|
+
query_params[:'min_price'] = opts[:'min_price'] if !opts[:'min_price'].nil?
|
|
77
|
+
query_params[:'max_price'] = opts[:'max_price'] if !opts[:'max_price'].nil?
|
|
78
|
+
query_params[:'facet'] = opts[:'facet'] if !opts[:'facet'].nil?
|
|
79
|
+
|
|
80
|
+
# header parameters
|
|
81
|
+
header_params = opts[:header_params] || {}
|
|
82
|
+
# HTTP header 'Accept' (if needed)
|
|
83
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
84
|
+
|
|
85
|
+
# form parameters
|
|
86
|
+
form_params = opts[:form_params] || {}
|
|
87
|
+
|
|
88
|
+
# http body (model)
|
|
89
|
+
post_body = opts[:debug_body]
|
|
90
|
+
|
|
91
|
+
# return_type
|
|
92
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
93
|
+
|
|
94
|
+
# auth_names
|
|
95
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
96
|
+
|
|
97
|
+
new_options = opts.merge(
|
|
98
|
+
:operation => :"WalmartApi.walmart_browse_a_category",
|
|
99
|
+
:header_params => header_params,
|
|
100
|
+
:query_params => query_params,
|
|
101
|
+
:form_params => form_params,
|
|
102
|
+
:body => post_body,
|
|
103
|
+
:auth_names => auth_names,
|
|
104
|
+
:return_type => return_type
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
108
|
+
if @api_client.config.debugging
|
|
109
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_browse_a_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
110
|
+
end
|
|
111
|
+
return data, status_code, headers
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Deals, rollbacks and clearance
|
|
115
|
+
# Walmart's current deals, rollbacks and clearance.
|
|
116
|
+
# @param [Hash] opts the optional parameters
|
|
117
|
+
# @option opts [Integer] :page (default to 1)
|
|
118
|
+
# @option opts [Float] :min_price
|
|
119
|
+
# @option opts [Float] :max_price
|
|
120
|
+
# @return [Object]
|
|
121
|
+
def walmart_deals_rollbacks_and_clearance(opts = {})
|
|
122
|
+
data, _status_code, _headers = walmart_deals_rollbacks_and_clearance_with_http_info(opts)
|
|
123
|
+
data
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Deals, rollbacks and clearance
|
|
127
|
+
# Walmart's current deals, rollbacks and clearance.
|
|
128
|
+
# @param [Hash] opts the optional parameters
|
|
129
|
+
# @option opts [Integer] :page (default to 1)
|
|
130
|
+
# @option opts [Float] :min_price
|
|
131
|
+
# @option opts [Float] :max_price
|
|
132
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
133
|
+
def walmart_deals_rollbacks_and_clearance_with_http_info(opts = {})
|
|
134
|
+
if @api_client.config.debugging
|
|
135
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_deals_rollbacks_and_clearance ...'
|
|
136
|
+
end
|
|
137
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 11
|
|
138
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_deals_rollbacks_and_clearance, must be smaller than or equal to 11.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
142
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_deals_rollbacks_and_clearance, must be greater than or equal to 1.'
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if @api_client.config.client_side_validation && !opts[:'min_price'].nil? && opts[:'min_price'] < 0
|
|
146
|
+
fail ArgumentError, 'invalid value for "opts[:"min_price"]" when calling WalmartApi.walmart_deals_rollbacks_and_clearance, must be greater than or equal to 0.'
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if @api_client.config.client_side_validation && !opts[:'max_price'].nil? && opts[:'max_price'] < 0
|
|
150
|
+
fail ArgumentError, 'invalid value for "opts[:"max_price"]" when calling WalmartApi.walmart_deals_rollbacks_and_clearance, must be greater than or equal to 0.'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# resource path
|
|
154
|
+
local_var_path = '/v1/walmart/deals'
|
|
155
|
+
|
|
156
|
+
# query parameters
|
|
157
|
+
query_params = opts[:query_params] || {}
|
|
158
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
159
|
+
query_params[:'min_price'] = opts[:'min_price'] if !opts[:'min_price'].nil?
|
|
160
|
+
query_params[:'max_price'] = opts[:'max_price'] if !opts[:'max_price'].nil?
|
|
161
|
+
|
|
162
|
+
# header parameters
|
|
163
|
+
header_params = opts[:header_params] || {}
|
|
164
|
+
# HTTP header 'Accept' (if needed)
|
|
165
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
166
|
+
|
|
167
|
+
# form parameters
|
|
168
|
+
form_params = opts[:form_params] || {}
|
|
169
|
+
|
|
170
|
+
# http body (model)
|
|
171
|
+
post_body = opts[:debug_body]
|
|
172
|
+
|
|
173
|
+
# return_type
|
|
174
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
175
|
+
|
|
176
|
+
# auth_names
|
|
177
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
178
|
+
|
|
179
|
+
new_options = opts.merge(
|
|
180
|
+
:operation => :"WalmartApi.walmart_deals_rollbacks_and_clearance",
|
|
181
|
+
:header_params => header_params,
|
|
182
|
+
:query_params => query_params,
|
|
183
|
+
:form_params => form_params,
|
|
184
|
+
:body => post_body,
|
|
185
|
+
:auth_names => auth_names,
|
|
186
|
+
:return_type => return_type
|
|
187
|
+
)
|
|
188
|
+
|
|
189
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
190
|
+
if @api_client.config.debugging
|
|
191
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_deals_rollbacks_and_clearance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
192
|
+
end
|
|
193
|
+
return data, status_code, headers
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# Get a seller's catalogue
|
|
197
|
+
# A marketplace seller's catalogue, scoped by a search term.
|
|
198
|
+
# @param seller_id [String] Numeric catalog seller id, e.g. '101040442' — the `catalog_seller_id` on a product, NOT the 32-char hex `seller_id` (which 404s).
|
|
199
|
+
# @param query [String] Required — Walmart returns nothing for a seller facet alone
|
|
200
|
+
# @param [Hash] opts the optional parameters
|
|
201
|
+
# @option opts [Integer] :page (default to 1)
|
|
202
|
+
# @option opts [String] :sort
|
|
203
|
+
# @return [Object]
|
|
204
|
+
def walmart_get_a_seller_s_catalogue(seller_id, query, opts = {})
|
|
205
|
+
data, _status_code, _headers = walmart_get_a_seller_s_catalogue_with_http_info(seller_id, query, opts)
|
|
206
|
+
data
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Get a seller's catalogue
|
|
210
|
+
# A marketplace seller's catalogue, scoped by a search term.
|
|
211
|
+
# @param seller_id [String] Numeric catalog seller id, e.g. '101040442' — the `catalog_seller_id` on a product, NOT the 32-char hex `seller_id` (which 404s).
|
|
212
|
+
# @param query [String] Required — Walmart returns nothing for a seller facet alone
|
|
213
|
+
# @param [Hash] opts the optional parameters
|
|
214
|
+
# @option opts [Integer] :page (default to 1)
|
|
215
|
+
# @option opts [String] :sort
|
|
216
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
217
|
+
def walmart_get_a_seller_s_catalogue_with_http_info(seller_id, query, opts = {})
|
|
218
|
+
if @api_client.config.debugging
|
|
219
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_get_a_seller_s_catalogue ...'
|
|
220
|
+
end
|
|
221
|
+
# verify the required parameter 'seller_id' is set
|
|
222
|
+
if @api_client.config.client_side_validation && seller_id.nil?
|
|
223
|
+
fail ArgumentError, "Missing the required parameter 'seller_id' when calling WalmartApi.walmart_get_a_seller_s_catalogue"
|
|
224
|
+
end
|
|
225
|
+
# verify the required parameter 'query' is set
|
|
226
|
+
if @api_client.config.client_side_validation && query.nil?
|
|
227
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling WalmartApi.walmart_get_a_seller_s_catalogue"
|
|
228
|
+
end
|
|
229
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 10
|
|
230
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_get_a_seller_s_catalogue, must be smaller than or equal to 10.'
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
234
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_get_a_seller_s_catalogue, must be greater than or equal to 1.'
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# resource path
|
|
238
|
+
local_var_path = '/v1/walmart/sellers/{seller_id}/products'.sub('{' + 'seller_id' + '}', CGI.escape(seller_id.to_s))
|
|
239
|
+
|
|
240
|
+
# query parameters
|
|
241
|
+
query_params = opts[:query_params] || {}
|
|
242
|
+
query_params[:'query'] = query
|
|
243
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
244
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
245
|
+
|
|
246
|
+
# header parameters
|
|
247
|
+
header_params = opts[:header_params] || {}
|
|
248
|
+
# HTTP header 'Accept' (if needed)
|
|
249
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
250
|
+
|
|
251
|
+
# form parameters
|
|
252
|
+
form_params = opts[:form_params] || {}
|
|
253
|
+
|
|
254
|
+
# http body (model)
|
|
255
|
+
post_body = opts[:debug_body]
|
|
256
|
+
|
|
257
|
+
# return_type
|
|
258
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
259
|
+
|
|
260
|
+
# auth_names
|
|
261
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
262
|
+
|
|
263
|
+
new_options = opts.merge(
|
|
264
|
+
:operation => :"WalmartApi.walmart_get_a_seller_s_catalogue",
|
|
265
|
+
:header_params => header_params,
|
|
266
|
+
:query_params => query_params,
|
|
267
|
+
:form_params => form_params,
|
|
268
|
+
:body => post_body,
|
|
269
|
+
:auth_names => auth_names,
|
|
270
|
+
:return_type => return_type
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
274
|
+
if @api_client.config.debugging
|
|
275
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_get_a_seller_s_catalogue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
276
|
+
end
|
|
277
|
+
return data, status_code, headers
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Get product detail
|
|
281
|
+
# Full product detail — price, stock, specs, variants, seller, reviews sample.
|
|
282
|
+
# @param item_id [String] Walmart usItemId, e.g. '5689919121'
|
|
283
|
+
# @param [Hash] opts the optional parameters
|
|
284
|
+
# @return [Object]
|
|
285
|
+
def walmart_get_product_detail(item_id, opts = {})
|
|
286
|
+
data, _status_code, _headers = walmart_get_product_detail_with_http_info(item_id, opts)
|
|
287
|
+
data
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
# Get product detail
|
|
291
|
+
# Full product detail — price, stock, specs, variants, seller, reviews sample.
|
|
292
|
+
# @param item_id [String] Walmart usItemId, e.g. '5689919121'
|
|
293
|
+
# @param [Hash] opts the optional parameters
|
|
294
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
295
|
+
def walmart_get_product_detail_with_http_info(item_id, opts = {})
|
|
296
|
+
if @api_client.config.debugging
|
|
297
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_get_product_detail ...'
|
|
298
|
+
end
|
|
299
|
+
# verify the required parameter 'item_id' is set
|
|
300
|
+
if @api_client.config.client_side_validation && item_id.nil?
|
|
301
|
+
fail ArgumentError, "Missing the required parameter 'item_id' when calling WalmartApi.walmart_get_product_detail"
|
|
302
|
+
end
|
|
303
|
+
# resource path
|
|
304
|
+
local_var_path = '/v1/walmart/products/{item_id}'.sub('{' + 'item_id' + '}', CGI.escape(item_id.to_s))
|
|
305
|
+
|
|
306
|
+
# query parameters
|
|
307
|
+
query_params = opts[:query_params] || {}
|
|
308
|
+
|
|
309
|
+
# header parameters
|
|
310
|
+
header_params = opts[:header_params] || {}
|
|
311
|
+
# HTTP header 'Accept' (if needed)
|
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
313
|
+
|
|
314
|
+
# form parameters
|
|
315
|
+
form_params = opts[:form_params] || {}
|
|
316
|
+
|
|
317
|
+
# http body (model)
|
|
318
|
+
post_body = opts[:debug_body]
|
|
319
|
+
|
|
320
|
+
# return_type
|
|
321
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
322
|
+
|
|
323
|
+
# auth_names
|
|
324
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
325
|
+
|
|
326
|
+
new_options = opts.merge(
|
|
327
|
+
:operation => :"WalmartApi.walmart_get_product_detail",
|
|
328
|
+
:header_params => header_params,
|
|
329
|
+
:query_params => query_params,
|
|
330
|
+
:form_params => form_params,
|
|
331
|
+
:body => post_body,
|
|
332
|
+
:auth_names => auth_names,
|
|
333
|
+
:return_type => return_type
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
337
|
+
if @api_client.config.debugging
|
|
338
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_get_product_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
339
|
+
end
|
|
340
|
+
return data, status_code, headers
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Get product reviews
|
|
344
|
+
# Paginated reviews with the full star histogram. 10 per page.
|
|
345
|
+
# @param item_id [String] Walmart usItemId, e.g. '5689919121'
|
|
346
|
+
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @option opts [Integer] :page (default to 1)
|
|
348
|
+
# @option opts [String] :sort relevancy | submission-desc | submission-asc | rating-desc | rating-asc | helpful
|
|
349
|
+
# @return [Object]
|
|
350
|
+
def walmart_get_product_reviews(item_id, opts = {})
|
|
351
|
+
data, _status_code, _headers = walmart_get_product_reviews_with_http_info(item_id, opts)
|
|
352
|
+
data
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# Get product reviews
|
|
356
|
+
# Paginated reviews with the full star histogram. 10 per page.
|
|
357
|
+
# @param item_id [String] Walmart usItemId, e.g. '5689919121'
|
|
358
|
+
# @param [Hash] opts the optional parameters
|
|
359
|
+
# @option opts [Integer] :page (default to 1)
|
|
360
|
+
# @option opts [String] :sort relevancy | submission-desc | submission-asc | rating-desc | rating-asc | helpful
|
|
361
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
362
|
+
def walmart_get_product_reviews_with_http_info(item_id, opts = {})
|
|
363
|
+
if @api_client.config.debugging
|
|
364
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_get_product_reviews ...'
|
|
365
|
+
end
|
|
366
|
+
# verify the required parameter 'item_id' is set
|
|
367
|
+
if @api_client.config.client_side_validation && item_id.nil?
|
|
368
|
+
fail ArgumentError, "Missing the required parameter 'item_id' when calling WalmartApi.walmart_get_product_reviews"
|
|
369
|
+
end
|
|
370
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 100
|
|
371
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_get_product_reviews, must be smaller than or equal to 100.'
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
375
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_get_product_reviews, must be greater than or equal to 1.'
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
# resource path
|
|
379
|
+
local_var_path = '/v1/walmart/products/{item_id}/reviews'.sub('{' + 'item_id' + '}', CGI.escape(item_id.to_s))
|
|
380
|
+
|
|
381
|
+
# query parameters
|
|
382
|
+
query_params = opts[:query_params] || {}
|
|
383
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
384
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
385
|
+
|
|
386
|
+
# header parameters
|
|
387
|
+
header_params = opts[:header_params] || {}
|
|
388
|
+
# HTTP header 'Accept' (if needed)
|
|
389
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
390
|
+
|
|
391
|
+
# form parameters
|
|
392
|
+
form_params = opts[:form_params] || {}
|
|
393
|
+
|
|
394
|
+
# http body (model)
|
|
395
|
+
post_body = opts[:debug_body]
|
|
396
|
+
|
|
397
|
+
# return_type
|
|
398
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
399
|
+
|
|
400
|
+
# auth_names
|
|
401
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
402
|
+
|
|
403
|
+
new_options = opts.merge(
|
|
404
|
+
:operation => :"WalmartApi.walmart_get_product_reviews",
|
|
405
|
+
:header_params => header_params,
|
|
406
|
+
:query_params => query_params,
|
|
407
|
+
:form_params => form_params,
|
|
408
|
+
:body => post_body,
|
|
409
|
+
:auth_names => auth_names,
|
|
410
|
+
:return_type => return_type
|
|
411
|
+
)
|
|
412
|
+
|
|
413
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_get_product_reviews\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
416
|
+
end
|
|
417
|
+
return data, status_code, headers
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Get seller profile
|
|
421
|
+
# Marketplace seller profile — contact details, address, rating, policies. No `page`: adding one makes Walmart's own SSR throw. Use `/sellers/{id}/products` for the catalogue.
|
|
422
|
+
# @param seller_id [String] Numeric catalog seller id, e.g. '101040442' — the `catalog_seller_id` on a product, NOT the 32-char hex `seller_id` (which 404s).
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [Object]
|
|
425
|
+
def walmart_get_seller_profile(seller_id, opts = {})
|
|
426
|
+
data, _status_code, _headers = walmart_get_seller_profile_with_http_info(seller_id, opts)
|
|
427
|
+
data
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Get seller profile
|
|
431
|
+
# Marketplace seller profile — contact details, address, rating, policies. No `page`: adding one makes Walmart's own SSR throw. Use `/sellers/{id}/products` for the catalogue.
|
|
432
|
+
# @param seller_id [String] Numeric catalog seller id, e.g. '101040442' — the `catalog_seller_id` on a product, NOT the 32-char hex `seller_id` (which 404s).
|
|
433
|
+
# @param [Hash] opts the optional parameters
|
|
434
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
435
|
+
def walmart_get_seller_profile_with_http_info(seller_id, opts = {})
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_get_seller_profile ...'
|
|
438
|
+
end
|
|
439
|
+
# verify the required parameter 'seller_id' is set
|
|
440
|
+
if @api_client.config.client_side_validation && seller_id.nil?
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'seller_id' when calling WalmartApi.walmart_get_seller_profile"
|
|
442
|
+
end
|
|
443
|
+
# resource path
|
|
444
|
+
local_var_path = '/v1/walmart/sellers/{seller_id}'.sub('{' + 'seller_id' + '}', CGI.escape(seller_id.to_s))
|
|
445
|
+
|
|
446
|
+
# query parameters
|
|
447
|
+
query_params = opts[:query_params] || {}
|
|
448
|
+
|
|
449
|
+
# header parameters
|
|
450
|
+
header_params = opts[:header_params] || {}
|
|
451
|
+
# HTTP header 'Accept' (if needed)
|
|
452
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
453
|
+
|
|
454
|
+
# form parameters
|
|
455
|
+
form_params = opts[:form_params] || {}
|
|
456
|
+
|
|
457
|
+
# http body (model)
|
|
458
|
+
post_body = opts[:debug_body]
|
|
459
|
+
|
|
460
|
+
# return_type
|
|
461
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
462
|
+
|
|
463
|
+
# auth_names
|
|
464
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
465
|
+
|
|
466
|
+
new_options = opts.merge(
|
|
467
|
+
:operation => :"WalmartApi.walmart_get_seller_profile",
|
|
468
|
+
:header_params => header_params,
|
|
469
|
+
:query_params => query_params,
|
|
470
|
+
:form_params => form_params,
|
|
471
|
+
:body => post_body,
|
|
472
|
+
:auth_names => auth_names,
|
|
473
|
+
:return_type => return_type
|
|
474
|
+
)
|
|
475
|
+
|
|
476
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_get_seller_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
+
end
|
|
480
|
+
return data, status_code, headers
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Get store + nearby stores
|
|
484
|
+
# Store detail with hours, per-department services, and nearby stores.
|
|
485
|
+
# @param store_id [String] Walmart store number, e.g. '100'
|
|
486
|
+
# @param [Hash] opts the optional parameters
|
|
487
|
+
# @return [Object]
|
|
488
|
+
def walmart_get_store_nearby_stores(store_id, opts = {})
|
|
489
|
+
data, _status_code, _headers = walmart_get_store_nearby_stores_with_http_info(store_id, opts)
|
|
490
|
+
data
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Get store + nearby stores
|
|
494
|
+
# Store detail with hours, per-department services, and nearby stores.
|
|
495
|
+
# @param store_id [String] Walmart store number, e.g. '100'
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
498
|
+
def walmart_get_store_nearby_stores_with_http_info(store_id, opts = {})
|
|
499
|
+
if @api_client.config.debugging
|
|
500
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_get_store_nearby_stores ...'
|
|
501
|
+
end
|
|
502
|
+
# verify the required parameter 'store_id' is set
|
|
503
|
+
if @api_client.config.client_side_validation && store_id.nil?
|
|
504
|
+
fail ArgumentError, "Missing the required parameter 'store_id' when calling WalmartApi.walmart_get_store_nearby_stores"
|
|
505
|
+
end
|
|
506
|
+
# resource path
|
|
507
|
+
local_var_path = '/v1/walmart/stores/{store_id}'.sub('{' + 'store_id' + '}', CGI.escape(store_id.to_s))
|
|
508
|
+
|
|
509
|
+
# query parameters
|
|
510
|
+
query_params = opts[:query_params] || {}
|
|
511
|
+
|
|
512
|
+
# header parameters
|
|
513
|
+
header_params = opts[:header_params] || {}
|
|
514
|
+
# HTTP header 'Accept' (if needed)
|
|
515
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
516
|
+
|
|
517
|
+
# form parameters
|
|
518
|
+
form_params = opts[:form_params] || {}
|
|
519
|
+
|
|
520
|
+
# http body (model)
|
|
521
|
+
post_body = opts[:debug_body]
|
|
522
|
+
|
|
523
|
+
# return_type
|
|
524
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
525
|
+
|
|
526
|
+
# auth_names
|
|
527
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
528
|
+
|
|
529
|
+
new_options = opts.merge(
|
|
530
|
+
:operation => :"WalmartApi.walmart_get_store_nearby_stores",
|
|
531
|
+
:header_params => header_params,
|
|
532
|
+
:query_params => query_params,
|
|
533
|
+
:form_params => form_params,
|
|
534
|
+
:body => post_body,
|
|
535
|
+
:auth_names => auth_names,
|
|
536
|
+
:return_type => return_type
|
|
537
|
+
)
|
|
538
|
+
|
|
539
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
540
|
+
if @api_client.config.debugging
|
|
541
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_get_store_nearby_stores\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
542
|
+
end
|
|
543
|
+
return data, status_code, headers
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# List supported markets
|
|
547
|
+
# Supported Walmart markets.
|
|
548
|
+
# @param [Hash] opts the optional parameters
|
|
549
|
+
# @return [Object]
|
|
550
|
+
def walmart_list_supported_markets(opts = {})
|
|
551
|
+
data, _status_code, _headers = walmart_list_supported_markets_with_http_info(opts)
|
|
552
|
+
data
|
|
553
|
+
end
|
|
554
|
+
|
|
555
|
+
# List supported markets
|
|
556
|
+
# Supported Walmart markets.
|
|
557
|
+
# @param [Hash] opts the optional parameters
|
|
558
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
559
|
+
def walmart_list_supported_markets_with_http_info(opts = {})
|
|
560
|
+
if @api_client.config.debugging
|
|
561
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_list_supported_markets ...'
|
|
562
|
+
end
|
|
563
|
+
# resource path
|
|
564
|
+
local_var_path = '/v1/walmart/markets'
|
|
565
|
+
|
|
566
|
+
# query parameters
|
|
567
|
+
query_params = opts[:query_params] || {}
|
|
568
|
+
|
|
569
|
+
# header parameters
|
|
570
|
+
header_params = opts[:header_params] || {}
|
|
571
|
+
# HTTP header 'Accept' (if needed)
|
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
573
|
+
|
|
574
|
+
# form parameters
|
|
575
|
+
form_params = opts[:form_params] || {}
|
|
576
|
+
|
|
577
|
+
# http body (model)
|
|
578
|
+
post_body = opts[:debug_body]
|
|
579
|
+
|
|
580
|
+
# return_type
|
|
581
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
582
|
+
|
|
583
|
+
# auth_names
|
|
584
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
585
|
+
|
|
586
|
+
new_options = opts.merge(
|
|
587
|
+
:operation => :"WalmartApi.walmart_list_supported_markets",
|
|
588
|
+
:header_params => header_params,
|
|
589
|
+
:query_params => query_params,
|
|
590
|
+
:form_params => form_params,
|
|
591
|
+
:body => post_body,
|
|
592
|
+
:auth_names => auth_names,
|
|
593
|
+
:return_type => return_type
|
|
594
|
+
)
|
|
595
|
+
|
|
596
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
597
|
+
if @api_client.config.debugging
|
|
598
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_list_supported_markets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
599
|
+
end
|
|
600
|
+
return data, status_code, headers
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
# Search products
|
|
604
|
+
# Search walmart.com. ~40-60 organic products per page; ad tiles are dropped.
|
|
605
|
+
# @param query [String] Search keywords, e.g. 'laptop'
|
|
606
|
+
# @param [Hash] opts the optional parameters
|
|
607
|
+
# @option opts [Integer] :page Results dry up after page 10 (default to 1)
|
|
608
|
+
# @option opts [String] :sort best_match | best_seller | price_low | price_high | rating_high | new
|
|
609
|
+
# @option opts [Float] :min_price
|
|
610
|
+
# @option opts [Float] :max_price
|
|
611
|
+
# @option opts [String] :facet Facet filter, e.g. 'brand:HP'
|
|
612
|
+
# @return [Object]
|
|
613
|
+
def walmart_search_products(query, opts = {})
|
|
614
|
+
data, _status_code, _headers = walmart_search_products_with_http_info(query, opts)
|
|
615
|
+
data
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# Search products
|
|
619
|
+
# Search walmart.com. ~40-60 organic products per page; ad tiles are dropped.
|
|
620
|
+
# @param query [String] Search keywords, e.g. 'laptop'
|
|
621
|
+
# @param [Hash] opts the optional parameters
|
|
622
|
+
# @option opts [Integer] :page Results dry up after page 10 (default to 1)
|
|
623
|
+
# @option opts [String] :sort best_match | best_seller | price_low | price_high | rating_high | new
|
|
624
|
+
# @option opts [Float] :min_price
|
|
625
|
+
# @option opts [Float] :max_price
|
|
626
|
+
# @option opts [String] :facet Facet filter, e.g. 'brand:HP'
|
|
627
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
628
|
+
def walmart_search_products_with_http_info(query, opts = {})
|
|
629
|
+
if @api_client.config.debugging
|
|
630
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_search_products ...'
|
|
631
|
+
end
|
|
632
|
+
# verify the required parameter 'query' is set
|
|
633
|
+
if @api_client.config.client_side_validation && query.nil?
|
|
634
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling WalmartApi.walmart_search_products"
|
|
635
|
+
end
|
|
636
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 10
|
|
637
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_search_products, must be smaller than or equal to 10.'
|
|
638
|
+
end
|
|
639
|
+
|
|
640
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
641
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling WalmartApi.walmart_search_products, must be greater than or equal to 1.'
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
if @api_client.config.client_side_validation && !opts[:'min_price'].nil? && opts[:'min_price'] < 0
|
|
645
|
+
fail ArgumentError, 'invalid value for "opts[:"min_price"]" when calling WalmartApi.walmart_search_products, must be greater than or equal to 0.'
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
if @api_client.config.client_side_validation && !opts[:'max_price'].nil? && opts[:'max_price'] < 0
|
|
649
|
+
fail ArgumentError, 'invalid value for "opts[:"max_price"]" when calling WalmartApi.walmart_search_products, must be greater than or equal to 0.'
|
|
650
|
+
end
|
|
651
|
+
|
|
652
|
+
# resource path
|
|
653
|
+
local_var_path = '/v1/walmart/search'
|
|
654
|
+
|
|
655
|
+
# query parameters
|
|
656
|
+
query_params = opts[:query_params] || {}
|
|
657
|
+
query_params[:'query'] = query
|
|
658
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
659
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
|
660
|
+
query_params[:'min_price'] = opts[:'min_price'] if !opts[:'min_price'].nil?
|
|
661
|
+
query_params[:'max_price'] = opts[:'max_price'] if !opts[:'max_price'].nil?
|
|
662
|
+
query_params[:'facet'] = opts[:'facet'] if !opts[:'facet'].nil?
|
|
663
|
+
|
|
664
|
+
# header parameters
|
|
665
|
+
header_params = opts[:header_params] || {}
|
|
666
|
+
# HTTP header 'Accept' (if needed)
|
|
667
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
668
|
+
|
|
669
|
+
# form parameters
|
|
670
|
+
form_params = opts[:form_params] || {}
|
|
671
|
+
|
|
672
|
+
# http body (model)
|
|
673
|
+
post_body = opts[:debug_body]
|
|
674
|
+
|
|
675
|
+
# return_type
|
|
676
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
677
|
+
|
|
678
|
+
# auth_names
|
|
679
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
680
|
+
|
|
681
|
+
new_options = opts.merge(
|
|
682
|
+
:operation => :"WalmartApi.walmart_search_products",
|
|
683
|
+
:header_params => header_params,
|
|
684
|
+
:query_params => query_params,
|
|
685
|
+
:form_params => form_params,
|
|
686
|
+
:body => post_body,
|
|
687
|
+
:auth_names => auth_names,
|
|
688
|
+
:return_type => return_type
|
|
689
|
+
)
|
|
690
|
+
|
|
691
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
692
|
+
if @api_client.config.debugging
|
|
693
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_search_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
694
|
+
end
|
|
695
|
+
return data, status_code, headers
|
|
696
|
+
end
|
|
697
|
+
|
|
698
|
+
# Search suggestions
|
|
699
|
+
# Walmart search-box suggestions.
|
|
700
|
+
# @param query [String] Partial search term, e.g. 'lapt'
|
|
701
|
+
# @param [Hash] opts the optional parameters
|
|
702
|
+
# @return [Object]
|
|
703
|
+
def walmart_search_suggestions(query, opts = {})
|
|
704
|
+
data, _status_code, _headers = walmart_search_suggestions_with_http_info(query, opts)
|
|
705
|
+
data
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
# Search suggestions
|
|
709
|
+
# Walmart search-box suggestions.
|
|
710
|
+
# @param query [String] Partial search term, e.g. 'lapt'
|
|
711
|
+
# @param [Hash] opts the optional parameters
|
|
712
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
713
|
+
def walmart_search_suggestions_with_http_info(query, opts = {})
|
|
714
|
+
if @api_client.config.debugging
|
|
715
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_search_suggestions ...'
|
|
716
|
+
end
|
|
717
|
+
# verify the required parameter 'query' is set
|
|
718
|
+
if @api_client.config.client_side_validation && query.nil?
|
|
719
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling WalmartApi.walmart_search_suggestions"
|
|
720
|
+
end
|
|
721
|
+
# resource path
|
|
722
|
+
local_var_path = '/v1/walmart/autocomplete'
|
|
723
|
+
|
|
724
|
+
# query parameters
|
|
725
|
+
query_params = opts[:query_params] || {}
|
|
726
|
+
query_params[:'query'] = query
|
|
727
|
+
|
|
728
|
+
# header parameters
|
|
729
|
+
header_params = opts[:header_params] || {}
|
|
730
|
+
# HTTP header 'Accept' (if needed)
|
|
731
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
732
|
+
|
|
733
|
+
# form parameters
|
|
734
|
+
form_params = opts[:form_params] || {}
|
|
735
|
+
|
|
736
|
+
# http body (model)
|
|
737
|
+
post_body = opts[:debug_body]
|
|
738
|
+
|
|
739
|
+
# return_type
|
|
740
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
741
|
+
|
|
742
|
+
# auth_names
|
|
743
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
744
|
+
|
|
745
|
+
new_options = opts.merge(
|
|
746
|
+
:operation => :"WalmartApi.walmart_search_suggestions",
|
|
747
|
+
:header_params => header_params,
|
|
748
|
+
:query_params => query_params,
|
|
749
|
+
:form_params => form_params,
|
|
750
|
+
:body => post_body,
|
|
751
|
+
:auth_names => auth_names,
|
|
752
|
+
:return_type => return_type
|
|
753
|
+
)
|
|
754
|
+
|
|
755
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
756
|
+
if @api_client.config.debugging
|
|
757
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_search_suggestions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
758
|
+
end
|
|
759
|
+
return data, status_code, headers
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
# Walmart scraper health check
|
|
763
|
+
# Check health of the Walmart scraper service (accepts HEAD for UptimeRobot).
|
|
764
|
+
# @param [Hash] opts the optional parameters
|
|
765
|
+
# @return [Object]
|
|
766
|
+
def walmart_walmart_scraper_health_check(opts = {})
|
|
767
|
+
data, _status_code, _headers = walmart_walmart_scraper_health_check_with_http_info(opts)
|
|
768
|
+
data
|
|
769
|
+
end
|
|
770
|
+
|
|
771
|
+
# Walmart scraper health check
|
|
772
|
+
# Check health of the Walmart scraper service (accepts HEAD for UptimeRobot).
|
|
773
|
+
# @param [Hash] opts the optional parameters
|
|
774
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
775
|
+
def walmart_walmart_scraper_health_check_with_http_info(opts = {})
|
|
776
|
+
if @api_client.config.debugging
|
|
777
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_walmart_scraper_health_check ...'
|
|
778
|
+
end
|
|
779
|
+
# resource path
|
|
780
|
+
local_var_path = '/v1/walmart/health'
|
|
781
|
+
|
|
782
|
+
# query parameters
|
|
783
|
+
query_params = opts[:query_params] || {}
|
|
784
|
+
|
|
785
|
+
# header parameters
|
|
786
|
+
header_params = opts[:header_params] || {}
|
|
787
|
+
# HTTP header 'Accept' (if needed)
|
|
788
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
789
|
+
|
|
790
|
+
# form parameters
|
|
791
|
+
form_params = opts[:form_params] || {}
|
|
792
|
+
|
|
793
|
+
# http body (model)
|
|
794
|
+
post_body = opts[:debug_body]
|
|
795
|
+
|
|
796
|
+
# return_type
|
|
797
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
798
|
+
|
|
799
|
+
# auth_names
|
|
800
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
801
|
+
|
|
802
|
+
new_options = opts.merge(
|
|
803
|
+
:operation => :"WalmartApi.walmart_walmart_scraper_health_check",
|
|
804
|
+
:header_params => header_params,
|
|
805
|
+
:query_params => query_params,
|
|
806
|
+
:form_params => form_params,
|
|
807
|
+
:body => post_body,
|
|
808
|
+
:auth_names => auth_names,
|
|
809
|
+
:return_type => return_type
|
|
810
|
+
)
|
|
811
|
+
|
|
812
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
813
|
+
if @api_client.config.debugging
|
|
814
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_walmart_scraper_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
815
|
+
end
|
|
816
|
+
return data, status_code, headers
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
# Walmart scraper health check
|
|
820
|
+
# Check health of the Walmart scraper service (accepts HEAD for UptimeRobot).
|
|
821
|
+
# @param [Hash] opts the optional parameters
|
|
822
|
+
# @return [Object]
|
|
823
|
+
def walmart_walmart_scraper_health_check_head(opts = {})
|
|
824
|
+
data, _status_code, _headers = walmart_walmart_scraper_health_check_head_with_http_info(opts)
|
|
825
|
+
data
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# Walmart scraper health check
|
|
829
|
+
# Check health of the Walmart scraper service (accepts HEAD for UptimeRobot).
|
|
830
|
+
# @param [Hash] opts the optional parameters
|
|
831
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
832
|
+
def walmart_walmart_scraper_health_check_head_with_http_info(opts = {})
|
|
833
|
+
if @api_client.config.debugging
|
|
834
|
+
@api_client.config.logger.debug 'Calling API: WalmartApi.walmart_walmart_scraper_health_check_head ...'
|
|
835
|
+
end
|
|
836
|
+
# resource path
|
|
837
|
+
local_var_path = '/v1/walmart/health'
|
|
838
|
+
|
|
839
|
+
# query parameters
|
|
840
|
+
query_params = opts[:query_params] || {}
|
|
841
|
+
|
|
842
|
+
# header parameters
|
|
843
|
+
header_params = opts[:header_params] || {}
|
|
844
|
+
# HTTP header 'Accept' (if needed)
|
|
845
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
846
|
+
|
|
847
|
+
# form parameters
|
|
848
|
+
form_params = opts[:form_params] || {}
|
|
849
|
+
|
|
850
|
+
# http body (model)
|
|
851
|
+
post_body = opts[:debug_body]
|
|
852
|
+
|
|
853
|
+
# return_type
|
|
854
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
855
|
+
|
|
856
|
+
# auth_names
|
|
857
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
858
|
+
|
|
859
|
+
new_options = opts.merge(
|
|
860
|
+
:operation => :"WalmartApi.walmart_walmart_scraper_health_check_head",
|
|
861
|
+
:header_params => header_params,
|
|
862
|
+
:query_params => query_params,
|
|
863
|
+
:form_params => form_params,
|
|
864
|
+
:body => post_body,
|
|
865
|
+
:auth_names => auth_names,
|
|
866
|
+
:return_type => return_type
|
|
867
|
+
)
|
|
868
|
+
|
|
869
|
+
data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
|
|
870
|
+
if @api_client.config.debugging
|
|
871
|
+
@api_client.config.logger.debug "API called: WalmartApi#walmart_walmart_scraper_health_check_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
872
|
+
end
|
|
873
|
+
return data, status_code, headers
|
|
874
|
+
end
|
|
875
|
+
end
|
|
876
|
+
end
|