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.
Files changed (185) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +548 -0
  5. data/Rakefile +10 -0
  6. data/docs/AccountApi.md +76 -0
  7. data/docs/AccountInfo.md +28 -0
  8. data/docs/AmazonApi.md +1244 -0
  9. data/docs/ApartmentsApi.md +373 -0
  10. data/docs/BaiduApi.md +447 -0
  11. data/docs/BillingLogListResponse.md +24 -0
  12. data/docs/BillingLogResponse.md +32 -0
  13. data/docs/BingApi.md +610 -0
  14. data/docs/ChatGPTApi.md +521 -0
  15. data/docs/DepopApi.md +542 -0
  16. data/docs/DuckDuckGoApi.md +700 -0
  17. data/docs/EBayApi.md +1019 -0
  18. data/docs/FacebookApi.md +1671 -0
  19. data/docs/FilterRuleCreate.md +28 -0
  20. data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
  21. data/docs/FilterRuleDeliveryLogResponse.md +44 -0
  22. data/docs/FilterRuleListResponse.md +24 -0
  23. data/docs/FilterRuleResponse.md +40 -0
  24. data/docs/FilterRuleUpdate.md +30 -0
  25. data/docs/FilterRuleValidateRequest.md +18 -0
  26. data/docs/FilterRuleValidateResponse.md +22 -0
  27. data/docs/GoogleApi.md +3175 -0
  28. data/docs/HTTPValidationError.md +18 -0
  29. data/docs/IdealistaApi.md +822 -0
  30. data/docs/ImmobiliareApi.md +773 -0
  31. data/docs/InstagramApi.md +1673 -0
  32. data/docs/LeboncoinApi.md +884 -0
  33. data/docs/LinkedInApi.md +925 -0
  34. data/docs/LoopNetApi.md +529 -0
  35. data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
  36. data/docs/RealtorApi.md +474 -0
  37. data/docs/RedditApi.md +1677 -0
  38. data/docs/RedfinApi.md +616 -0
  39. data/docs/StreamMonitorCreate.md +26 -0
  40. data/docs/StreamMonitorListResponse.md +24 -0
  41. data/docs/StreamMonitorResponse.md +42 -0
  42. data/docs/StreamMonitorUpdate.md +28 -0
  43. data/docs/SubscriptionInfo.md +40 -0
  44. data/docs/TikTokApi.md +2104 -0
  45. data/docs/TweetDeliveryLogListResponse.md +24 -0
  46. data/docs/TweetDeliveryLogResponse.md +44 -0
  47. data/docs/TwitterApi.md +4091 -0
  48. data/docs/ValidationError.md +22 -0
  49. data/docs/ValidationErrorLocInner.md +15 -0
  50. data/docs/VintedApi.md +766 -0
  51. data/docs/WalmartApi.md +904 -0
  52. data/docs/WebApi.md +634 -0
  53. data/docs/WebhookCreate.md +22 -0
  54. data/docs/WebhookListItem.md +28 -0
  55. data/docs/WebhookListResponse.md +20 -0
  56. data/docs/WebhookResponse.md +26 -0
  57. data/docs/WebhookTestRequest.md +18 -0
  58. data/docs/WebhookTestResponse.md +24 -0
  59. data/docs/YahooApi.md +602 -0
  60. data/docs/YandexApi.md +450 -0
  61. data/docs/YouTubeApi.md +2872 -0
  62. data/docs/ZillowApi.md +622 -0
  63. data/git_push.sh +57 -0
  64. data/lib/scrapebadger/api/account_api.rb +79 -0
  65. data/lib/scrapebadger/api/amazon_api.rb +1165 -0
  66. data/lib/scrapebadger/api/apartments_api.rb +377 -0
  67. data/lib/scrapebadger/api/baidu_api.rb +436 -0
  68. data/lib/scrapebadger/api/bing_api.rb +580 -0
  69. data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
  70. data/lib/scrapebadger/api/depop_api.rb +518 -0
  71. data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
  72. data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
  73. data/lib/scrapebadger/api/facebook_api.rb +1492 -0
  74. data/lib/scrapebadger/api/google_api.rb +3191 -0
  75. data/lib/scrapebadger/api/idealista_api.rb +864 -0
  76. data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
  77. data/lib/scrapebadger/api/instagram_api.rb +1555 -0
  78. data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
  79. data/lib/scrapebadger/api/linked_in_api.rb +832 -0
  80. data/lib/scrapebadger/api/loop_net_api.rb +503 -0
  81. data/lib/scrapebadger/api/realtor_api.rb +481 -0
  82. data/lib/scrapebadger/api/reddit_api.rb +1601 -0
  83. data/lib/scrapebadger/api/redfin_api.rb +625 -0
  84. data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
  85. data/lib/scrapebadger/api/twitter_api.rb +3696 -0
  86. data/lib/scrapebadger/api/vinted_api.rb +705 -0
  87. data/lib/scrapebadger/api/walmart_api.rb +876 -0
  88. data/lib/scrapebadger/api/web_api.rb +547 -0
  89. data/lib/scrapebadger/api/yahoo_api.rb +560 -0
  90. data/lib/scrapebadger/api/yandex_api.rb +422 -0
  91. data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
  92. data/lib/scrapebadger/api/zillow_api.rb +634 -0
  93. data/lib/scrapebadger/api_client.rb +394 -0
  94. data/lib/scrapebadger/api_error.rb +58 -0
  95. data/lib/scrapebadger/configuration.rb +308 -0
  96. data/lib/scrapebadger/models/account_info.rb +288 -0
  97. data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
  98. data/lib/scrapebadger/models/billing_log_response.rb +334 -0
  99. data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
  100. data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
  101. data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
  102. data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
  103. data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
  104. data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
  105. data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
  106. data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
  107. data/lib/scrapebadger/models/http_validation_error.rb +216 -0
  108. data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
  109. data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
  110. data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
  111. data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
  112. data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
  113. data/lib/scrapebadger/models/subscription_info.rb +352 -0
  114. data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
  115. data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
  116. data/lib/scrapebadger/models/validation_error.rb +255 -0
  117. data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
  118. data/lib/scrapebadger/models/webhook_create.rb +282 -0
  119. data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
  120. data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
  121. data/lib/scrapebadger/models/webhook_response.rb +286 -0
  122. data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
  123. data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
  124. data/lib/scrapebadger/version.rb +15 -0
  125. data/lib/scrapebadger.rb +96 -0
  126. data/scrapebadger.gemspec +39 -0
  127. data/spec/api/account_api_spec.rb +46 -0
  128. data/spec/api/amazon_api_spec.rb +258 -0
  129. data/spec/api/apartments_api_spec.rb +98 -0
  130. data/spec/api/baidu_api_spec.rb +109 -0
  131. data/spec/api/bing_api_spec.rb +141 -0
  132. data/spec/api/chat_gpt_api_spec.rb +123 -0
  133. data/spec/api/depop_api_spec.rb +132 -0
  134. data/spec/api/duck_duck_go_api_spec.rb +162 -0
  135. data/spec/api/e_bay_api_spec.rb +222 -0
  136. data/spec/api/facebook_api_spec.rb +326 -0
  137. data/spec/api/google_api_spec.rb +649 -0
  138. data/spec/api/idealista_api_spec.rb +197 -0
  139. data/spec/api/immobiliare_api_spec.rb +174 -0
  140. data/spec/api/instagram_api_spec.rb +309 -0
  141. data/spec/api/leboncoin_api_spec.rb +184 -0
  142. data/spec/api/linked_in_api_spec.rb +197 -0
  143. data/spec/api/loop_net_api_spec.rb +127 -0
  144. data/spec/api/realtor_api_spec.rb +123 -0
  145. data/spec/api/reddit_api_spec.rb +331 -0
  146. data/spec/api/redfin_api_spec.rb +147 -0
  147. data/spec/api/tik_tok_api_spec.rb +413 -0
  148. data/spec/api/twitter_api_spec.rb +735 -0
  149. data/spec/api/vinted_api_spec.rb +169 -0
  150. data/spec/api/walmart_api_spec.rb +192 -0
  151. data/spec/api/web_api_spec.rb +136 -0
  152. data/spec/api/yahoo_api_spec.rb +137 -0
  153. data/spec/api/yandex_api_spec.rb +111 -0
  154. data/spec/api/you_tube_api_spec.rb +500 -0
  155. data/spec/api/zillow_api_spec.rb +150 -0
  156. data/spec/models/account_info_spec.rb +66 -0
  157. data/spec/models/billing_log_list_response_spec.rb +54 -0
  158. data/spec/models/billing_log_response_spec.rb +78 -0
  159. data/spec/models/filter_rule_create_spec.rb +66 -0
  160. data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
  161. data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
  162. data/spec/models/filter_rule_list_response_spec.rb +54 -0
  163. data/spec/models/filter_rule_response_spec.rb +102 -0
  164. data/spec/models/filter_rule_update_spec.rb +72 -0
  165. data/spec/models/filter_rule_validate_request_spec.rb +36 -0
  166. data/spec/models/filter_rule_validate_response_spec.rb +48 -0
  167. data/spec/models/http_validation_error_spec.rb +36 -0
  168. data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
  169. data/spec/models/stream_monitor_create_spec.rb +60 -0
  170. data/spec/models/stream_monitor_list_response_spec.rb +54 -0
  171. data/spec/models/stream_monitor_response_spec.rb +108 -0
  172. data/spec/models/stream_monitor_update_spec.rb +66 -0
  173. data/spec/models/subscription_info_spec.rb +102 -0
  174. data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
  175. data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
  176. data/spec/models/validation_error_loc_inner_spec.rb +21 -0
  177. data/spec/models/validation_error_spec.rb +48 -0
  178. data/spec/models/webhook_create_spec.rb +48 -0
  179. data/spec/models/webhook_list_item_spec.rb +66 -0
  180. data/spec/models/webhook_list_response_spec.rb +42 -0
  181. data/spec/models/webhook_response_spec.rb +60 -0
  182. data/spec/models/webhook_test_request_spec.rb +36 -0
  183. data/spec/models/webhook_test_response_spec.rb +54 -0
  184. data/spec/spec_helper.rb +111 -0
  185. metadata +324 -0
data/docs/DepopApi.md ADDED
@@ -0,0 +1,542 @@
1
+ # ScrapeBadger::DepopApi
2
+
3
+ All URIs are relative to *https://scrapebadger.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**depop_depop_scraper_health_check**](DepopApi.md#depop_depop_scraper_health_check) | **GET** /v1/depop/health | Depop scraper health check |
8
+ | [**depop_depop_scraper_health_check_head**](DepopApi.md#depop_depop_scraper_health_check_head) | **HEAD** /v1/depop/health | Depop scraper health check |
9
+ | [**depop_get_a_user_s_products**](DepopApi.md#depop_get_a_user_s_products) | **GET** /v1/depop/users/{username}/products | Get a user's products |
10
+ | [**depop_get_product_detail**](DepopApi.md#depop_get_product_detail) | **GET** /v1/depop/products/{product_id} | Get product detail |
11
+ | [**depop_get_shop_user_profile**](DepopApi.md#depop_get_shop_user_profile) | **GET** /v1/depop/users/{username} | Get shop/user profile |
12
+ | [**depop_list_markets**](DepopApi.md#depop_list_markets) | **GET** /v1/depop/markets | List markets |
13
+ | [**depop_search_depop_products**](DepopApi.md#depop_search_depop_products) | **GET** /v1/depop/search | Search Depop products |
14
+
15
+
16
+ ## depop_depop_scraper_health_check
17
+
18
+ > Object depop_depop_scraper_health_check
19
+
20
+ Depop scraper health check
21
+
22
+ Check health of the Depop scraper service (accepts HEAD).
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'scrapebadger'
29
+ # setup authorization
30
+ ScrapeBadger.configure do |config|
31
+ # Configure API key authorization: ApiKeyAuth
32
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
33
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
35
+ end
36
+
37
+ api_instance = ScrapeBadger::DepopApi.new
38
+
39
+ begin
40
+ # Depop scraper health check
41
+ result = api_instance.depop_depop_scraper_health_check
42
+ p result
43
+ rescue ScrapeBadger::ApiError => e
44
+ puts "Error when calling DepopApi->depop_depop_scraper_health_check: #{e}"
45
+ end
46
+ ```
47
+
48
+ #### Using the depop_depop_scraper_health_check_with_http_info variant
49
+
50
+ This returns an Array which contains the response data, status code and headers.
51
+
52
+ > <Array(Object, Integer, Hash)> depop_depop_scraper_health_check_with_http_info
53
+
54
+ ```ruby
55
+ begin
56
+ # Depop scraper health check
57
+ data, status_code, headers = api_instance.depop_depop_scraper_health_check_with_http_info
58
+ p status_code # => 2xx
59
+ p headers # => { ... }
60
+ p data # => Object
61
+ rescue ScrapeBadger::ApiError => e
62
+ puts "Error when calling DepopApi->depop_depop_scraper_health_check_with_http_info: #{e}"
63
+ end
64
+ ```
65
+
66
+ ### Parameters
67
+
68
+ This endpoint does not need any parameter.
69
+
70
+ ### Return type
71
+
72
+ **Object**
73
+
74
+ ### Authorization
75
+
76
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: Not defined
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## depop_depop_scraper_health_check_head
85
+
86
+ > Object depop_depop_scraper_health_check_head
87
+
88
+ Depop scraper health check
89
+
90
+ Check health of the Depop scraper service (accepts HEAD).
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'scrapebadger'
97
+ # setup authorization
98
+ ScrapeBadger.configure do |config|
99
+ # Configure API key authorization: ApiKeyAuth
100
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
101
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
103
+ end
104
+
105
+ api_instance = ScrapeBadger::DepopApi.new
106
+
107
+ begin
108
+ # Depop scraper health check
109
+ result = api_instance.depop_depop_scraper_health_check_head
110
+ p result
111
+ rescue ScrapeBadger::ApiError => e
112
+ puts "Error when calling DepopApi->depop_depop_scraper_health_check_head: #{e}"
113
+ end
114
+ ```
115
+
116
+ #### Using the depop_depop_scraper_health_check_head_with_http_info variant
117
+
118
+ This returns an Array which contains the response data, status code and headers.
119
+
120
+ > <Array(Object, Integer, Hash)> depop_depop_scraper_health_check_head_with_http_info
121
+
122
+ ```ruby
123
+ begin
124
+ # Depop scraper health check
125
+ data, status_code, headers = api_instance.depop_depop_scraper_health_check_head_with_http_info
126
+ p status_code # => 2xx
127
+ p headers # => { ... }
128
+ p data # => Object
129
+ rescue ScrapeBadger::ApiError => e
130
+ puts "Error when calling DepopApi->depop_depop_scraper_health_check_head_with_http_info: #{e}"
131
+ end
132
+ ```
133
+
134
+ ### Parameters
135
+
136
+ This endpoint does not need any parameter.
137
+
138
+ ### Return type
139
+
140
+ **Object**
141
+
142
+ ### Authorization
143
+
144
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: application/json
150
+
151
+
152
+ ## depop_get_a_user_s_products
153
+
154
+ > Object depop_get_a_user_s_products(username, opts)
155
+
156
+ Get a user's products
157
+
158
+ A user's active listings (cursor-paginated).
159
+
160
+ ### Examples
161
+
162
+ ```ruby
163
+ require 'time'
164
+ require 'scrapebadger'
165
+ # setup authorization
166
+ ScrapeBadger.configure do |config|
167
+ # Configure API key authorization: ApiKeyAuth
168
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
169
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
170
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
171
+ end
172
+
173
+ api_instance = ScrapeBadger::DepopApi.new
174
+ username = 'username_example' # String |
175
+ opts = {
176
+ market: 'market_example', # String | Market code
177
+ per_page: 56, # Integer |
178
+ cursor: 'cursor_example' # String | Pagination cursor
179
+ }
180
+
181
+ begin
182
+ # Get a user's products
183
+ result = api_instance.depop_get_a_user_s_products(username, opts)
184
+ p result
185
+ rescue ScrapeBadger::ApiError => e
186
+ puts "Error when calling DepopApi->depop_get_a_user_s_products: #{e}"
187
+ end
188
+ ```
189
+
190
+ #### Using the depop_get_a_user_s_products_with_http_info variant
191
+
192
+ This returns an Array which contains the response data, status code and headers.
193
+
194
+ > <Array(Object, Integer, Hash)> depop_get_a_user_s_products_with_http_info(username, opts)
195
+
196
+ ```ruby
197
+ begin
198
+ # Get a user's products
199
+ data, status_code, headers = api_instance.depop_get_a_user_s_products_with_http_info(username, opts)
200
+ p status_code # => 2xx
201
+ p headers # => { ... }
202
+ p data # => Object
203
+ rescue ScrapeBadger::ApiError => e
204
+ puts "Error when calling DepopApi->depop_get_a_user_s_products_with_http_info: #{e}"
205
+ end
206
+ ```
207
+
208
+ ### Parameters
209
+
210
+ | Name | Type | Description | Notes |
211
+ | ---- | ---- | ----------- | ----- |
212
+ | **username** | **String** | | |
213
+ | **market** | **String** | Market code | [optional][default to &#39;us&#39;] |
214
+ | **per_page** | **Integer** | | [optional][default to 24] |
215
+ | **cursor** | **String** | Pagination cursor | [optional] |
216
+
217
+ ### Return type
218
+
219
+ **Object**
220
+
221
+ ### Authorization
222
+
223
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: Not defined
228
+ - **Accept**: application/json
229
+
230
+
231
+ ## depop_get_product_detail
232
+
233
+ > Object depop_get_product_detail(product_id, opts)
234
+
235
+ Get product detail
236
+
237
+ Full detail for a single product (by numeric id or slug).
238
+
239
+ ### Examples
240
+
241
+ ```ruby
242
+ require 'time'
243
+ require 'scrapebadger'
244
+ # setup authorization
245
+ ScrapeBadger.configure do |config|
246
+ # Configure API key authorization: ApiKeyAuth
247
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
248
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
249
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
250
+ end
251
+
252
+ api_instance = ScrapeBadger::DepopApi.new
253
+ product_id = 'product_id_example' # String |
254
+ opts = {
255
+ market: 'market_example' # String | Market code
256
+ }
257
+
258
+ begin
259
+ # Get product detail
260
+ result = api_instance.depop_get_product_detail(product_id, opts)
261
+ p result
262
+ rescue ScrapeBadger::ApiError => e
263
+ puts "Error when calling DepopApi->depop_get_product_detail: #{e}"
264
+ end
265
+ ```
266
+
267
+ #### Using the depop_get_product_detail_with_http_info variant
268
+
269
+ This returns an Array which contains the response data, status code and headers.
270
+
271
+ > <Array(Object, Integer, Hash)> depop_get_product_detail_with_http_info(product_id, opts)
272
+
273
+ ```ruby
274
+ begin
275
+ # Get product detail
276
+ data, status_code, headers = api_instance.depop_get_product_detail_with_http_info(product_id, opts)
277
+ p status_code # => 2xx
278
+ p headers # => { ... }
279
+ p data # => Object
280
+ rescue ScrapeBadger::ApiError => e
281
+ puts "Error when calling DepopApi->depop_get_product_detail_with_http_info: #{e}"
282
+ end
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+ | Name | Type | Description | Notes |
288
+ | ---- | ---- | ----------- | ----- |
289
+ | **product_id** | **String** | | |
290
+ | **market** | **String** | Market code | [optional][default to &#39;us&#39;] |
291
+
292
+ ### Return type
293
+
294
+ **Object**
295
+
296
+ ### Authorization
297
+
298
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
299
+
300
+ ### HTTP request headers
301
+
302
+ - **Content-Type**: Not defined
303
+ - **Accept**: application/json
304
+
305
+
306
+ ## depop_get_shop_user_profile
307
+
308
+ > Object depop_get_shop_user_profile(username, opts)
309
+
310
+ Get shop/user profile
311
+
312
+ Public shop/user profile by username.
313
+
314
+ ### Examples
315
+
316
+ ```ruby
317
+ require 'time'
318
+ require 'scrapebadger'
319
+ # setup authorization
320
+ ScrapeBadger.configure do |config|
321
+ # Configure API key authorization: ApiKeyAuth
322
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
323
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
324
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
325
+ end
326
+
327
+ api_instance = ScrapeBadger::DepopApi.new
328
+ username = 'username_example' # String |
329
+ opts = {
330
+ market: 'market_example' # String | Market code
331
+ }
332
+
333
+ begin
334
+ # Get shop/user profile
335
+ result = api_instance.depop_get_shop_user_profile(username, opts)
336
+ p result
337
+ rescue ScrapeBadger::ApiError => e
338
+ puts "Error when calling DepopApi->depop_get_shop_user_profile: #{e}"
339
+ end
340
+ ```
341
+
342
+ #### Using the depop_get_shop_user_profile_with_http_info variant
343
+
344
+ This returns an Array which contains the response data, status code and headers.
345
+
346
+ > <Array(Object, Integer, Hash)> depop_get_shop_user_profile_with_http_info(username, opts)
347
+
348
+ ```ruby
349
+ begin
350
+ # Get shop/user profile
351
+ data, status_code, headers = api_instance.depop_get_shop_user_profile_with_http_info(username, opts)
352
+ p status_code # => 2xx
353
+ p headers # => { ... }
354
+ p data # => Object
355
+ rescue ScrapeBadger::ApiError => e
356
+ puts "Error when calling DepopApi->depop_get_shop_user_profile_with_http_info: #{e}"
357
+ end
358
+ ```
359
+
360
+ ### Parameters
361
+
362
+ | Name | Type | Description | Notes |
363
+ | ---- | ---- | ----------- | ----- |
364
+ | **username** | **String** | | |
365
+ | **market** | **String** | Market code | [optional][default to &#39;us&#39;] |
366
+
367
+ ### Return type
368
+
369
+ **Object**
370
+
371
+ ### Authorization
372
+
373
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
374
+
375
+ ### HTTP request headers
376
+
377
+ - **Content-Type**: Not defined
378
+ - **Accept**: application/json
379
+
380
+
381
+ ## depop_list_markets
382
+
383
+ > Object depop_list_markets
384
+
385
+ List markets
386
+
387
+ List supported Depop markets (country + currency).
388
+
389
+ ### Examples
390
+
391
+ ```ruby
392
+ require 'time'
393
+ require 'scrapebadger'
394
+ # setup authorization
395
+ ScrapeBadger.configure do |config|
396
+ # Configure API key authorization: ApiKeyAuth
397
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
398
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
399
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
400
+ end
401
+
402
+ api_instance = ScrapeBadger::DepopApi.new
403
+
404
+ begin
405
+ # List markets
406
+ result = api_instance.depop_list_markets
407
+ p result
408
+ rescue ScrapeBadger::ApiError => e
409
+ puts "Error when calling DepopApi->depop_list_markets: #{e}"
410
+ end
411
+ ```
412
+
413
+ #### Using the depop_list_markets_with_http_info variant
414
+
415
+ This returns an Array which contains the response data, status code and headers.
416
+
417
+ > <Array(Object, Integer, Hash)> depop_list_markets_with_http_info
418
+
419
+ ```ruby
420
+ begin
421
+ # List markets
422
+ data, status_code, headers = api_instance.depop_list_markets_with_http_info
423
+ p status_code # => 2xx
424
+ p headers # => { ... }
425
+ p data # => Object
426
+ rescue ScrapeBadger::ApiError => e
427
+ puts "Error when calling DepopApi->depop_list_markets_with_http_info: #{e}"
428
+ end
429
+ ```
430
+
431
+ ### Parameters
432
+
433
+ This endpoint does not need any parameter.
434
+
435
+ ### Return type
436
+
437
+ **Object**
438
+
439
+ ### Authorization
440
+
441
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
442
+
443
+ ### HTTP request headers
444
+
445
+ - **Content-Type**: Not defined
446
+ - **Accept**: application/json
447
+
448
+
449
+ ## depop_search_depop_products
450
+
451
+ > Object depop_search_depop_products(query, opts)
452
+
453
+ Search Depop products
454
+
455
+ Search the Depop catalog with filters (cursor-paginated).
456
+
457
+ ### Examples
458
+
459
+ ```ruby
460
+ require 'time'
461
+ require 'scrapebadger'
462
+ # setup authorization
463
+ ScrapeBadger.configure do |config|
464
+ # Configure API key authorization: ApiKeyAuth
465
+ config.api_key['X-API-Key'] = 'YOUR API KEY'
466
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
467
+ # config.api_key_prefix['X-API-Key'] = 'Bearer'
468
+ end
469
+
470
+ api_instance = ScrapeBadger::DepopApi.new
471
+ query = 'query_example' # String | Search text, e.g. 'nike vintage'
472
+ opts = {
473
+ market: 'market_example', # String | Market code (us, gb, au, it, fr, ...)
474
+ per_page: 56, # Integer | Results per page
475
+ cursor: 'cursor_example', # String | Pagination cursor (from previous page)
476
+ price_min: 8.14, # Float | Minimum price
477
+ price_max: 8.14, # Float | Maximum price
478
+ brands: 'brands_example', # String | Comma-separated brand IDs
479
+ categories: 'categories_example', # String | Comma-separated category IDs
480
+ sizes: 'sizes_example', # String | Comma-separated size IDs
481
+ conditions: 'conditions_example', # String | Comma-separated condition slugs (brand_new, used_excellent, ...)
482
+ gender: 'gender_example', # String | male | female
483
+ sort: 'sort_example' # String | relevance | newlyListed | priceAscending | priceDescending
484
+ }
485
+
486
+ begin
487
+ # Search Depop products
488
+ result = api_instance.depop_search_depop_products(query, opts)
489
+ p result
490
+ rescue ScrapeBadger::ApiError => e
491
+ puts "Error when calling DepopApi->depop_search_depop_products: #{e}"
492
+ end
493
+ ```
494
+
495
+ #### Using the depop_search_depop_products_with_http_info variant
496
+
497
+ This returns an Array which contains the response data, status code and headers.
498
+
499
+ > <Array(Object, Integer, Hash)> depop_search_depop_products_with_http_info(query, opts)
500
+
501
+ ```ruby
502
+ begin
503
+ # Search Depop products
504
+ data, status_code, headers = api_instance.depop_search_depop_products_with_http_info(query, opts)
505
+ p status_code # => 2xx
506
+ p headers # => { ... }
507
+ p data # => Object
508
+ rescue ScrapeBadger::ApiError => e
509
+ puts "Error when calling DepopApi->depop_search_depop_products_with_http_info: #{e}"
510
+ end
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+ | Name | Type | Description | Notes |
516
+ | ---- | ---- | ----------- | ----- |
517
+ | **query** | **String** | Search text, e.g. &#39;nike vintage&#39; | |
518
+ | **market** | **String** | Market code (us, gb, au, it, fr, ...) | [optional][default to &#39;us&#39;] |
519
+ | **per_page** | **Integer** | Results per page | [optional][default to 24] |
520
+ | **cursor** | **String** | Pagination cursor (from previous page) | [optional] |
521
+ | **price_min** | **Float** | Minimum price | [optional] |
522
+ | **price_max** | **Float** | Maximum price | [optional] |
523
+ | **brands** | **String** | Comma-separated brand IDs | [optional] |
524
+ | **categories** | **String** | Comma-separated category IDs | [optional] |
525
+ | **sizes** | **String** | Comma-separated size IDs | [optional] |
526
+ | **conditions** | **String** | Comma-separated condition slugs (brand_new, used_excellent, ...) | [optional] |
527
+ | **gender** | **String** | male | female | [optional] |
528
+ | **sort** | **String** | relevance | newlyListed | priceAscending | priceDescending | [optional] |
529
+
530
+ ### Return type
531
+
532
+ **Object**
533
+
534
+ ### Authorization
535
+
536
+ [ApiKeyAuth](../README.md#ApiKeyAuth)
537
+
538
+ ### HTTP request headers
539
+
540
+ - **Content-Type**: Not defined
541
+ - **Accept**: application/json
542
+