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
@@ -0,0 +1,818 @@
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 LeboncoinApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get a seller's ads
23
+ # A seller's active ads.
24
+ # @param user_id [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Integer] :page (default to 1)
27
+ # @option opts [Integer] :limit (default to 35)
28
+ # @return [Object]
29
+ def leboncoin_get_a_seller_s_ads(user_id, opts = {})
30
+ data, _status_code, _headers = leboncoin_get_a_seller_s_ads_with_http_info(user_id, opts)
31
+ data
32
+ end
33
+
34
+ # Get a seller's ads
35
+ # A seller's active ads.
36
+ # @param user_id [String]
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Integer] :page (default to 1)
39
+ # @option opts [Integer] :limit (default to 35)
40
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
41
+ def leboncoin_get_a_seller_s_ads_with_http_info(user_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_get_a_seller_s_ads ...'
44
+ end
45
+ # verify the required parameter 'user_id' is set
46
+ if @api_client.config.client_side_validation && user_id.nil?
47
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling LeboncoinApi.leboncoin_get_a_seller_s_ads"
48
+ end
49
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
50
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LeboncoinApi.leboncoin_get_a_seller_s_ads, must be greater than or equal to 1.'
51
+ end
52
+
53
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
54
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LeboncoinApi.leboncoin_get_a_seller_s_ads, must be smaller than or equal to 100.'
55
+ end
56
+
57
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
58
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LeboncoinApi.leboncoin_get_a_seller_s_ads, must be greater than or equal to 1.'
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/v1/leboncoin/sellers/{user_id}/listings'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
63
+
64
+ # query parameters
65
+ query_params = opts[:query_params] || {}
66
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
67
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
68
+
69
+ # header parameters
70
+ header_params = opts[:header_params] || {}
71
+ # HTTP header 'Accept' (if needed)
72
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
73
+
74
+ # form parameters
75
+ form_params = opts[:form_params] || {}
76
+
77
+ # http body (model)
78
+ post_body = opts[:debug_body]
79
+
80
+ # return_type
81
+ return_type = opts[:debug_return_type] || 'Object'
82
+
83
+ # auth_names
84
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
85
+
86
+ new_options = opts.merge(
87
+ :operation => :"LeboncoinApi.leboncoin_get_a_seller_s_ads",
88
+ :header_params => header_params,
89
+ :query_params => query_params,
90
+ :form_params => form_params,
91
+ :body => post_body,
92
+ :auth_names => auth_names,
93
+ :return_type => return_type
94
+ )
95
+
96
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
97
+ if @api_client.config.debugging
98
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_get_a_seller_s_ads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
99
+ end
100
+ return data, status_code, headers
101
+ end
102
+
103
+ # Get ad detail
104
+ # Full detail for a Leboncoin ad.
105
+ # @param list_id [Integer]
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Object]
108
+ def leboncoin_get_ad_detail(list_id, opts = {})
109
+ data, _status_code, _headers = leboncoin_get_ad_detail_with_http_info(list_id, opts)
110
+ data
111
+ end
112
+
113
+ # Get ad detail
114
+ # Full detail for a Leboncoin ad.
115
+ # @param list_id [Integer]
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
118
+ def leboncoin_get_ad_detail_with_http_info(list_id, opts = {})
119
+ if @api_client.config.debugging
120
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_get_ad_detail ...'
121
+ end
122
+ # verify the required parameter 'list_id' is set
123
+ if @api_client.config.client_side_validation && list_id.nil?
124
+ fail ArgumentError, "Missing the required parameter 'list_id' when calling LeboncoinApi.leboncoin_get_ad_detail"
125
+ end
126
+ # resource path
127
+ local_var_path = '/v1/leboncoin/ads/{list_id}'.sub('{' + 'list_id' + '}', CGI.escape(list_id.to_s))
128
+
129
+ # query parameters
130
+ query_params = opts[:query_params] || {}
131
+
132
+ # header parameters
133
+ header_params = opts[:header_params] || {}
134
+ # HTTP header 'Accept' (if needed)
135
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
136
+
137
+ # form parameters
138
+ form_params = opts[:form_params] || {}
139
+
140
+ # http body (model)
141
+ post_body = opts[:debug_body]
142
+
143
+ # return_type
144
+ return_type = opts[:debug_return_type] || 'Object'
145
+
146
+ # auth_names
147
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
148
+
149
+ new_options = opts.merge(
150
+ :operation => :"LeboncoinApi.leboncoin_get_ad_detail",
151
+ :header_params => header_params,
152
+ :query_params => query_params,
153
+ :form_params => form_params,
154
+ :body => post_body,
155
+ :auth_names => auth_names,
156
+ :return_type => return_type
157
+ )
158
+
159
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_get_ad_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
162
+ end
163
+ return data, status_code, headers
164
+ end
165
+
166
+ # Get seller profile
167
+ # Public seller/pro-store profile.
168
+ # @param user_id [String]
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [Object]
171
+ def leboncoin_get_seller_profile(user_id, opts = {})
172
+ data, _status_code, _headers = leboncoin_get_seller_profile_with_http_info(user_id, opts)
173
+ data
174
+ end
175
+
176
+ # Get seller profile
177
+ # Public seller/pro-store profile.
178
+ # @param user_id [String]
179
+ # @param [Hash] opts the optional parameters
180
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
181
+ def leboncoin_get_seller_profile_with_http_info(user_id, opts = {})
182
+ if @api_client.config.debugging
183
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_get_seller_profile ...'
184
+ end
185
+ # verify the required parameter 'user_id' is set
186
+ if @api_client.config.client_side_validation && user_id.nil?
187
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling LeboncoinApi.leboncoin_get_seller_profile"
188
+ end
189
+ # resource path
190
+ local_var_path = '/v1/leboncoin/sellers/{user_id}'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+
195
+ # header parameters
196
+ header_params = opts[:header_params] || {}
197
+ # HTTP header 'Accept' (if needed)
198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
199
+
200
+ # form parameters
201
+ form_params = opts[:form_params] || {}
202
+
203
+ # http body (model)
204
+ post_body = opts[:debug_body]
205
+
206
+ # return_type
207
+ return_type = opts[:debug_return_type] || 'Object'
208
+
209
+ # auth_names
210
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
211
+
212
+ new_options = opts.merge(
213
+ :operation => :"LeboncoinApi.leboncoin_get_seller_profile",
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => return_type
220
+ )
221
+
222
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
223
+ if @api_client.config.debugging
224
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_get_seller_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ end
226
+ return data, status_code, headers
227
+ end
228
+
229
+ # Get similar ads
230
+ # Ads Leboncoin surfaces as similar to the given ad.
231
+ # @param list_id [Integer]
232
+ # @param [Hash] opts the optional parameters
233
+ # @option opts [Integer] :limit (default to 20)
234
+ # @return [Object]
235
+ def leboncoin_get_similar_ads(list_id, opts = {})
236
+ data, _status_code, _headers = leboncoin_get_similar_ads_with_http_info(list_id, opts)
237
+ data
238
+ end
239
+
240
+ # Get similar ads
241
+ # Ads Leboncoin surfaces as similar to the given ad.
242
+ # @param list_id [Integer]
243
+ # @param [Hash] opts the optional parameters
244
+ # @option opts [Integer] :limit (default to 20)
245
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
246
+ def leboncoin_get_similar_ads_with_http_info(list_id, opts = {})
247
+ if @api_client.config.debugging
248
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_get_similar_ads ...'
249
+ end
250
+ # verify the required parameter 'list_id' is set
251
+ if @api_client.config.client_side_validation && list_id.nil?
252
+ fail ArgumentError, "Missing the required parameter 'list_id' when calling LeboncoinApi.leboncoin_get_similar_ads"
253
+ end
254
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 50
255
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LeboncoinApi.leboncoin_get_similar_ads, must be smaller than or equal to 50.'
256
+ end
257
+
258
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
259
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LeboncoinApi.leboncoin_get_similar_ads, must be greater than or equal to 1.'
260
+ end
261
+
262
+ # resource path
263
+ local_var_path = '/v1/leboncoin/ads/{list_id}/similar'.sub('{' + 'list_id' + '}', CGI.escape(list_id.to_s))
264
+
265
+ # query parameters
266
+ query_params = opts[:query_params] || {}
267
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
268
+
269
+ # header parameters
270
+ header_params = opts[:header_params] || {}
271
+ # HTTP header 'Accept' (if needed)
272
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
273
+
274
+ # form parameters
275
+ form_params = opts[:form_params] || {}
276
+
277
+ # http body (model)
278
+ post_body = opts[:debug_body]
279
+
280
+ # return_type
281
+ return_type = opts[:debug_return_type] || 'Object'
282
+
283
+ # auth_names
284
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
285
+
286
+ new_options = opts.merge(
287
+ :operation => :"LeboncoinApi.leboncoin_get_similar_ads",
288
+ :header_params => header_params,
289
+ :query_params => query_params,
290
+ :form_params => form_params,
291
+ :body => post_body,
292
+ :auth_names => auth_names,
293
+ :return_type => return_type
294
+ )
295
+
296
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
297
+ if @api_client.config.debugging
298
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_get_similar_ads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
299
+ end
300
+ return data, status_code, headers
301
+ end
302
+
303
+ # Leboncoin scraper health check
304
+ # Check health of the Leboncoin scraper service (accepts HEAD).
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Object]
307
+ def leboncoin_leboncoin_scraper_health_check(opts = {})
308
+ data, _status_code, _headers = leboncoin_leboncoin_scraper_health_check_with_http_info(opts)
309
+ data
310
+ end
311
+
312
+ # Leboncoin scraper health check
313
+ # Check health of the Leboncoin scraper service (accepts HEAD).
314
+ # @param [Hash] opts the optional parameters
315
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
316
+ def leboncoin_leboncoin_scraper_health_check_with_http_info(opts = {})
317
+ if @api_client.config.debugging
318
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_leboncoin_scraper_health_check ...'
319
+ end
320
+ # resource path
321
+ local_var_path = '/v1/leboncoin/health'
322
+
323
+ # query parameters
324
+ query_params = opts[:query_params] || {}
325
+
326
+ # header parameters
327
+ header_params = opts[:header_params] || {}
328
+ # HTTP header 'Accept' (if needed)
329
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
330
+
331
+ # form parameters
332
+ form_params = opts[:form_params] || {}
333
+
334
+ # http body (model)
335
+ post_body = opts[:debug_body]
336
+
337
+ # return_type
338
+ return_type = opts[:debug_return_type] || 'Object'
339
+
340
+ # auth_names
341
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
342
+
343
+ new_options = opts.merge(
344
+ :operation => :"LeboncoinApi.leboncoin_leboncoin_scraper_health_check",
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => return_type
351
+ )
352
+
353
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
354
+ if @api_client.config.debugging
355
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_leboncoin_scraper_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
356
+ end
357
+ return data, status_code, headers
358
+ end
359
+
360
+ # Leboncoin scraper health check
361
+ # Check health of the Leboncoin scraper service (accepts HEAD).
362
+ # @param [Hash] opts the optional parameters
363
+ # @return [Object]
364
+ def leboncoin_leboncoin_scraper_health_check_head(opts = {})
365
+ data, _status_code, _headers = leboncoin_leboncoin_scraper_health_check_head_with_http_info(opts)
366
+ data
367
+ end
368
+
369
+ # Leboncoin scraper health check
370
+ # Check health of the Leboncoin scraper service (accepts HEAD).
371
+ # @param [Hash] opts the optional parameters
372
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
373
+ def leboncoin_leboncoin_scraper_health_check_head_with_http_info(opts = {})
374
+ if @api_client.config.debugging
375
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_leboncoin_scraper_health_check_head ...'
376
+ end
377
+ # resource path
378
+ local_var_path = '/v1/leboncoin/health'
379
+
380
+ # query parameters
381
+ query_params = opts[:query_params] || {}
382
+
383
+ # header parameters
384
+ header_params = opts[:header_params] || {}
385
+ # HTTP header 'Accept' (if needed)
386
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
387
+
388
+ # form parameters
389
+ form_params = opts[:form_params] || {}
390
+
391
+ # http body (model)
392
+ post_body = opts[:debug_body]
393
+
394
+ # return_type
395
+ return_type = opts[:debug_return_type] || 'Object'
396
+
397
+ # auth_names
398
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
399
+
400
+ new_options = opts.merge(
401
+ :operation => :"LeboncoinApi.leboncoin_leboncoin_scraper_health_check_head",
402
+ :header_params => header_params,
403
+ :query_params => query_params,
404
+ :form_params => form_params,
405
+ :body => post_body,
406
+ :auth_names => auth_names,
407
+ :return_type => return_type
408
+ )
409
+
410
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
411
+ if @api_client.config.debugging
412
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_leboncoin_scraper_health_check_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
413
+ end
414
+ return data, status_code, headers
415
+ end
416
+
417
+ # List categories
418
+ # @param [Hash] opts the optional parameters
419
+ # @return [Object]
420
+ def leboncoin_list_categories(opts = {})
421
+ data, _status_code, _headers = leboncoin_list_categories_with_http_info(opts)
422
+ data
423
+ end
424
+
425
+ # List categories
426
+ # @param [Hash] opts the optional parameters
427
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
428
+ def leboncoin_list_categories_with_http_info(opts = {})
429
+ if @api_client.config.debugging
430
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_list_categories ...'
431
+ end
432
+ # resource path
433
+ local_var_path = '/v1/leboncoin/categories'
434
+
435
+ # query parameters
436
+ query_params = opts[:query_params] || {}
437
+
438
+ # header parameters
439
+ header_params = opts[:header_params] || {}
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
442
+
443
+ # form parameters
444
+ form_params = opts[:form_params] || {}
445
+
446
+ # http body (model)
447
+ post_body = opts[:debug_body]
448
+
449
+ # return_type
450
+ return_type = opts[:debug_return_type] || 'Object'
451
+
452
+ # auth_names
453
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
454
+
455
+ new_options = opts.merge(
456
+ :operation => :"LeboncoinApi.leboncoin_list_categories",
457
+ :header_params => header_params,
458
+ :query_params => query_params,
459
+ :form_params => form_params,
460
+ :body => post_body,
461
+ :auth_names => auth_names,
462
+ :return_type => return_type
463
+ )
464
+
465
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
466
+ if @api_client.config.debugging
467
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_list_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
468
+ end
469
+ return data, status_code, headers
470
+ end
471
+
472
+ # List departments
473
+ # @param [Hash] opts the optional parameters
474
+ # @option opts [String] :region_id
475
+ # @return [Object]
476
+ def leboncoin_list_departments(opts = {})
477
+ data, _status_code, _headers = leboncoin_list_departments_with_http_info(opts)
478
+ data
479
+ end
480
+
481
+ # List departments
482
+ # @param [Hash] opts the optional parameters
483
+ # @option opts [String] :region_id
484
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
485
+ def leboncoin_list_departments_with_http_info(opts = {})
486
+ if @api_client.config.debugging
487
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_list_departments ...'
488
+ end
489
+ # resource path
490
+ local_var_path = '/v1/leboncoin/departments'
491
+
492
+ # query parameters
493
+ query_params = opts[:query_params] || {}
494
+ query_params[:'region_id'] = opts[:'region_id'] if !opts[:'region_id'].nil?
495
+
496
+ # header parameters
497
+ header_params = opts[:header_params] || {}
498
+ # HTTP header 'Accept' (if needed)
499
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
500
+
501
+ # form parameters
502
+ form_params = opts[:form_params] || {}
503
+
504
+ # http body (model)
505
+ post_body = opts[:debug_body]
506
+
507
+ # return_type
508
+ return_type = opts[:debug_return_type] || 'Object'
509
+
510
+ # auth_names
511
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
512
+
513
+ new_options = opts.merge(
514
+ :operation => :"LeboncoinApi.leboncoin_list_departments",
515
+ :header_params => header_params,
516
+ :query_params => query_params,
517
+ :form_params => form_params,
518
+ :body => post_body,
519
+ :auth_names => auth_names,
520
+ :return_type => return_type
521
+ )
522
+
523
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
524
+ if @api_client.config.debugging
525
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_list_departments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
526
+ end
527
+ return data, status_code, headers
528
+ end
529
+
530
+ # List markets
531
+ # @param [Hash] opts the optional parameters
532
+ # @return [Object]
533
+ def leboncoin_list_markets(opts = {})
534
+ data, _status_code, _headers = leboncoin_list_markets_with_http_info(opts)
535
+ data
536
+ end
537
+
538
+ # List markets
539
+ # @param [Hash] opts the optional parameters
540
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
541
+ def leboncoin_list_markets_with_http_info(opts = {})
542
+ if @api_client.config.debugging
543
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_list_markets ...'
544
+ end
545
+ # resource path
546
+ local_var_path = '/v1/leboncoin/markets'
547
+
548
+ # query parameters
549
+ query_params = opts[:query_params] || {}
550
+
551
+ # header parameters
552
+ header_params = opts[:header_params] || {}
553
+ # HTTP header 'Accept' (if needed)
554
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
555
+
556
+ # form parameters
557
+ form_params = opts[:form_params] || {}
558
+
559
+ # http body (model)
560
+ post_body = opts[:debug_body]
561
+
562
+ # return_type
563
+ return_type = opts[:debug_return_type] || 'Object'
564
+
565
+ # auth_names
566
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
567
+
568
+ new_options = opts.merge(
569
+ :operation => :"LeboncoinApi.leboncoin_list_markets",
570
+ :header_params => header_params,
571
+ :query_params => query_params,
572
+ :form_params => form_params,
573
+ :body => post_body,
574
+ :auth_names => auth_names,
575
+ :return_type => return_type
576
+ )
577
+
578
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
579
+ if @api_client.config.debugging
580
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_list_markets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
581
+ end
582
+ return data, status_code, headers
583
+ end
584
+
585
+ # List regions
586
+ # @param [Hash] opts the optional parameters
587
+ # @return [Object]
588
+ def leboncoin_list_regions(opts = {})
589
+ data, _status_code, _headers = leboncoin_list_regions_with_http_info(opts)
590
+ data
591
+ end
592
+
593
+ # List regions
594
+ # @param [Hash] opts the optional parameters
595
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
596
+ def leboncoin_list_regions_with_http_info(opts = {})
597
+ if @api_client.config.debugging
598
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_list_regions ...'
599
+ end
600
+ # resource path
601
+ local_var_path = '/v1/leboncoin/regions'
602
+
603
+ # query parameters
604
+ query_params = opts[:query_params] || {}
605
+
606
+ # header parameters
607
+ header_params = opts[:header_params] || {}
608
+ # HTTP header 'Accept' (if needed)
609
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
610
+
611
+ # form parameters
612
+ form_params = opts[:form_params] || {}
613
+
614
+ # http body (model)
615
+ post_body = opts[:debug_body]
616
+
617
+ # return_type
618
+ return_type = opts[:debug_return_type] || 'Object'
619
+
620
+ # auth_names
621
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
622
+
623
+ new_options = opts.merge(
624
+ :operation => :"LeboncoinApi.leboncoin_list_regions",
625
+ :header_params => header_params,
626
+ :query_params => query_params,
627
+ :form_params => form_params,
628
+ :body => post_body,
629
+ :auth_names => auth_names,
630
+ :return_type => return_type
631
+ )
632
+
633
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
634
+ if @api_client.config.debugging
635
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_list_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
636
+ end
637
+ return data, status_code, headers
638
+ end
639
+
640
+ # Location autocomplete
641
+ # @param q [String] Place name
642
+ # @param [Hash] opts the optional parameters
643
+ # @return [Object]
644
+ def leboncoin_location_autocomplete(q, opts = {})
645
+ data, _status_code, _headers = leboncoin_location_autocomplete_with_http_info(q, opts)
646
+ data
647
+ end
648
+
649
+ # Location autocomplete
650
+ # @param q [String] Place name
651
+ # @param [Hash] opts the optional parameters
652
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
653
+ def leboncoin_location_autocomplete_with_http_info(q, opts = {})
654
+ if @api_client.config.debugging
655
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_location_autocomplete ...'
656
+ end
657
+ # verify the required parameter 'q' is set
658
+ if @api_client.config.client_side_validation && q.nil?
659
+ fail ArgumentError, "Missing the required parameter 'q' when calling LeboncoinApi.leboncoin_location_autocomplete"
660
+ end
661
+ # resource path
662
+ local_var_path = '/v1/leboncoin/locations/search'
663
+
664
+ # query parameters
665
+ query_params = opts[:query_params] || {}
666
+ query_params[:'q'] = q
667
+
668
+ # header parameters
669
+ header_params = opts[:header_params] || {}
670
+ # HTTP header 'Accept' (if needed)
671
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
672
+
673
+ # form parameters
674
+ form_params = opts[:form_params] || {}
675
+
676
+ # http body (model)
677
+ post_body = opts[:debug_body]
678
+
679
+ # return_type
680
+ return_type = opts[:debug_return_type] || 'Object'
681
+
682
+ # auth_names
683
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
684
+
685
+ new_options = opts.merge(
686
+ :operation => :"LeboncoinApi.leboncoin_location_autocomplete",
687
+ :header_params => header_params,
688
+ :query_params => query_params,
689
+ :form_params => form_params,
690
+ :body => post_body,
691
+ :auth_names => auth_names,
692
+ :return_type => return_type
693
+ )
694
+
695
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
696
+ if @api_client.config.debugging
697
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_location_autocomplete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
698
+ end
699
+ return data, status_code, headers
700
+ end
701
+
702
+ # Search Leboncoin ads
703
+ # Search Leboncoin classifieds (France; scope by region/department/city).
704
+ # @param [Hash] opts the optional parameters
705
+ # @option opts [String] :text Free-text query
706
+ # @option opts [String] :category Category id (see /categories)
707
+ # @option opts [String] :region_id Region id (see /regions)
708
+ # @option opts [String] :department_id Department id, e.g. 75
709
+ # @option opts [String] :city
710
+ # @option opts [String] :zipcode
711
+ # @option opts [Integer] :price_min
712
+ # @option opts [Integer] :price_max
713
+ # @option opts [String] :owner_type all | pro | private (default to 'all')
714
+ # @option opts [String] :ad_type offer | demand (default to 'offer')
715
+ # @option opts [String] :sort relevance|newest|oldest|price_low|price_high (default to 'relevance')
716
+ # @option opts [Integer] :page (default to 1)
717
+ # @option opts [Integer] :limit (default to 35)
718
+ # @return [Object]
719
+ def leboncoin_search_leboncoin_ads(opts = {})
720
+ data, _status_code, _headers = leboncoin_search_leboncoin_ads_with_http_info(opts)
721
+ data
722
+ end
723
+
724
+ # Search Leboncoin ads
725
+ # Search Leboncoin classifieds (France; scope by region/department/city).
726
+ # @param [Hash] opts the optional parameters
727
+ # @option opts [String] :text Free-text query
728
+ # @option opts [String] :category Category id (see /categories)
729
+ # @option opts [String] :region_id Region id (see /regions)
730
+ # @option opts [String] :department_id Department id, e.g. 75
731
+ # @option opts [String] :city
732
+ # @option opts [String] :zipcode
733
+ # @option opts [Integer] :price_min
734
+ # @option opts [Integer] :price_max
735
+ # @option opts [String] :owner_type all | pro | private (default to 'all')
736
+ # @option opts [String] :ad_type offer | demand (default to 'offer')
737
+ # @option opts [String] :sort relevance|newest|oldest|price_low|price_high (default to 'relevance')
738
+ # @option opts [Integer] :page (default to 1)
739
+ # @option opts [Integer] :limit (default to 35)
740
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
741
+ def leboncoin_search_leboncoin_ads_with_http_info(opts = {})
742
+ if @api_client.config.debugging
743
+ @api_client.config.logger.debug 'Calling API: LeboncoinApi.leboncoin_search_leboncoin_ads ...'
744
+ end
745
+ if @api_client.config.client_side_validation && !opts[:'price_min'].nil? && opts[:'price_min'] < 0
746
+ fail ArgumentError, 'invalid value for "opts[:"price_min"]" when calling LeboncoinApi.leboncoin_search_leboncoin_ads, must be greater than or equal to 0.'
747
+ end
748
+
749
+ if @api_client.config.client_side_validation && !opts[:'price_max'].nil? && opts[:'price_max'] < 0
750
+ fail ArgumentError, 'invalid value for "opts[:"price_max"]" when calling LeboncoinApi.leboncoin_search_leboncoin_ads, must be greater than or equal to 0.'
751
+ end
752
+
753
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
754
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LeboncoinApi.leboncoin_search_leboncoin_ads, must be greater than or equal to 1.'
755
+ end
756
+
757
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
758
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LeboncoinApi.leboncoin_search_leboncoin_ads, must be smaller than or equal to 100.'
759
+ end
760
+
761
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
762
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LeboncoinApi.leboncoin_search_leboncoin_ads, must be greater than or equal to 1.'
763
+ end
764
+
765
+ # resource path
766
+ local_var_path = '/v1/leboncoin/search'
767
+
768
+ # query parameters
769
+ query_params = opts[:query_params] || {}
770
+ query_params[:'text'] = opts[:'text'] if !opts[:'text'].nil?
771
+ query_params[:'category'] = opts[:'category'] if !opts[:'category'].nil?
772
+ query_params[:'region_id'] = opts[:'region_id'] if !opts[:'region_id'].nil?
773
+ query_params[:'department_id'] = opts[:'department_id'] if !opts[:'department_id'].nil?
774
+ query_params[:'city'] = opts[:'city'] if !opts[:'city'].nil?
775
+ query_params[:'zipcode'] = opts[:'zipcode'] if !opts[:'zipcode'].nil?
776
+ query_params[:'price_min'] = opts[:'price_min'] if !opts[:'price_min'].nil?
777
+ query_params[:'price_max'] = opts[:'price_max'] if !opts[:'price_max'].nil?
778
+ query_params[:'owner_type'] = opts[:'owner_type'] if !opts[:'owner_type'].nil?
779
+ query_params[:'ad_type'] = opts[:'ad_type'] if !opts[:'ad_type'].nil?
780
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
781
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
782
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
783
+
784
+ # header parameters
785
+ header_params = opts[:header_params] || {}
786
+ # HTTP header 'Accept' (if needed)
787
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
788
+
789
+ # form parameters
790
+ form_params = opts[:form_params] || {}
791
+
792
+ # http body (model)
793
+ post_body = opts[:debug_body]
794
+
795
+ # return_type
796
+ return_type = opts[:debug_return_type] || 'Object'
797
+
798
+ # auth_names
799
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
800
+
801
+ new_options = opts.merge(
802
+ :operation => :"LeboncoinApi.leboncoin_search_leboncoin_ads",
803
+ :header_params => header_params,
804
+ :query_params => query_params,
805
+ :form_params => form_params,
806
+ :body => post_body,
807
+ :auth_names => auth_names,
808
+ :return_type => return_type
809
+ )
810
+
811
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
812
+ if @api_client.config.debugging
813
+ @api_client.config.logger.debug "API called: LeboncoinApi#leboncoin_search_leboncoin_ads\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
814
+ end
815
+ return data, status_code, headers
816
+ end
817
+ end
818
+ end