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,481 @@
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 RealtorApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get full property detail
23
+ # Full listing detail: features, tax & price history, schools, photos, agents.
24
+ # @param property_id [String]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :market us (realtor.com) | ca (realtor.ca) (default to 'us')
27
+ # @return [Object]
28
+ def realtor_get_full_property_detail(property_id, opts = {})
29
+ data, _status_code, _headers = realtor_get_full_property_detail_with_http_info(property_id, opts)
30
+ data
31
+ end
32
+
33
+ # Get full property detail
34
+ # Full listing detail: features, tax & price history, schools, photos, agents.
35
+ # @param property_id [String]
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :market us (realtor.com) | ca (realtor.ca) (default to 'us')
38
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
39
+ def realtor_get_full_property_detail_with_http_info(property_id, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: RealtorApi.realtor_get_full_property_detail ...'
42
+ end
43
+ # verify the required parameter 'property_id' is set
44
+ if @api_client.config.client_side_validation && property_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'property_id' when calling RealtorApi.realtor_get_full_property_detail"
46
+ end
47
+ # resource path
48
+ local_var_path = '/v1/realtor/properties/{property_id}'.sub('{' + 'property_id' + '}', CGI.escape(property_id.to_s))
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+ query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
53
+
54
+ # header parameters
55
+ header_params = opts[:header_params] || {}
56
+ # HTTP header 'Accept' (if needed)
57
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body]
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type] || 'Object'
67
+
68
+ # auth_names
69
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"RealtorApi.realtor_get_full_property_detail",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: RealtorApi#realtor_get_full_property_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # List markets
89
+ # List supported Realtor markets (US = realtor.com, CA = realtor.ca).
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [Object]
92
+ def realtor_list_markets(opts = {})
93
+ data, _status_code, _headers = realtor_list_markets_with_http_info(opts)
94
+ data
95
+ end
96
+
97
+ # List markets
98
+ # List supported Realtor markets (US &#x3D; realtor.com, CA &#x3D; realtor.ca).
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
101
+ def realtor_list_markets_with_http_info(opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: RealtorApi.realtor_list_markets ...'
104
+ end
105
+ # resource path
106
+ local_var_path = '/v1/realtor/markets'
107
+
108
+ # query parameters
109
+ query_params = opts[:query_params] || {}
110
+
111
+ # header parameters
112
+ header_params = opts[:header_params] || {}
113
+ # HTTP header 'Accept' (if needed)
114
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
115
+
116
+ # form parameters
117
+ form_params = opts[:form_params] || {}
118
+
119
+ # http body (model)
120
+ post_body = opts[:debug_body]
121
+
122
+ # return_type
123
+ return_type = opts[:debug_return_type] || 'Object'
124
+
125
+ # auth_names
126
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
127
+
128
+ new_options = opts.merge(
129
+ :operation => :"RealtorApi.realtor_list_markets",
130
+ :header_params => header_params,
131
+ :query_params => query_params,
132
+ :form_params => form_params,
133
+ :body => post_body,
134
+ :auth_names => auth_names,
135
+ :return_type => return_type
136
+ )
137
+
138
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
139
+ if @api_client.config.debugging
140
+ @api_client.config.logger.debug "API called: RealtorApi#realtor_list_markets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
141
+ end
142
+ return data, status_code, headers
143
+ end
144
+
145
+ # Location autocomplete
146
+ # Resolve a location query into candidate places to feed /search.
147
+ # @param query [String] Freetext location (city, ZIP/postal, address…)
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :market us (realtor.com) | ca (realtor.ca) (default to 'us')
150
+ # @option opts [Integer] :limit (default to 10)
151
+ # @return [Object]
152
+ def realtor_location_autocomplete(query, opts = {})
153
+ data, _status_code, _headers = realtor_location_autocomplete_with_http_info(query, opts)
154
+ data
155
+ end
156
+
157
+ # Location autocomplete
158
+ # Resolve a location query into candidate places to feed /search.
159
+ # @param query [String] Freetext location (city, ZIP/postal, address…)
160
+ # @param [Hash] opts the optional parameters
161
+ # @option opts [String] :market us (realtor.com) | ca (realtor.ca) (default to 'us')
162
+ # @option opts [Integer] :limit (default to 10)
163
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
164
+ def realtor_location_autocomplete_with_http_info(query, opts = {})
165
+ if @api_client.config.debugging
166
+ @api_client.config.logger.debug 'Calling API: RealtorApi.realtor_location_autocomplete ...'
167
+ end
168
+ # verify the required parameter 'query' is set
169
+ if @api_client.config.client_side_validation && query.nil?
170
+ fail ArgumentError, "Missing the required parameter 'query' when calling RealtorApi.realtor_location_autocomplete"
171
+ end
172
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 25
173
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RealtorApi.realtor_location_autocomplete, must be smaller than or equal to 25.'
174
+ end
175
+
176
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
177
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RealtorApi.realtor_location_autocomplete, must be greater than or equal to 1.'
178
+ end
179
+
180
+ # resource path
181
+ local_var_path = '/v1/realtor/autocomplete'
182
+
183
+ # query parameters
184
+ query_params = opts[:query_params] || {}
185
+ query_params[:'query'] = query
186
+ query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
187
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
188
+
189
+ # header parameters
190
+ header_params = opts[:header_params] || {}
191
+ # HTTP header 'Accept' (if needed)
192
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
193
+
194
+ # form parameters
195
+ form_params = opts[:form_params] || {}
196
+
197
+ # http body (model)
198
+ post_body = opts[:debug_body]
199
+
200
+ # return_type
201
+ return_type = opts[:debug_return_type] || 'Object'
202
+
203
+ # auth_names
204
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
205
+
206
+ new_options = opts.merge(
207
+ :operation => :"RealtorApi.realtor_location_autocomplete",
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names,
213
+ :return_type => return_type
214
+ )
215
+
216
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
217
+ if @api_client.config.debugging
218
+ @api_client.config.logger.debug "API called: RealtorApi#realtor_location_autocomplete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ return data, status_code, headers
221
+ end
222
+
223
+ # Realtor scraper health check
224
+ # Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
225
+ # @param [Hash] opts the optional parameters
226
+ # @return [Object]
227
+ def realtor_realtor_scraper_health_check(opts = {})
228
+ data, _status_code, _headers = realtor_realtor_scraper_health_check_with_http_info(opts)
229
+ data
230
+ end
231
+
232
+ # Realtor scraper health check
233
+ # Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
234
+ # @param [Hash] opts the optional parameters
235
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
236
+ def realtor_realtor_scraper_health_check_with_http_info(opts = {})
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug 'Calling API: RealtorApi.realtor_realtor_scraper_health_check ...'
239
+ end
240
+ # resource path
241
+ local_var_path = '/v1/realtor/health'
242
+
243
+ # query parameters
244
+ query_params = opts[:query_params] || {}
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 => :"RealtorApi.realtor_realtor_scraper_health_check",
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: RealtorApi#realtor_realtor_scraper_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
276
+ end
277
+ return data, status_code, headers
278
+ end
279
+
280
+ # Realtor scraper health check
281
+ # Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
282
+ # @param [Hash] opts the optional parameters
283
+ # @return [Object]
284
+ def realtor_realtor_scraper_health_check_head(opts = {})
285
+ data, _status_code, _headers = realtor_realtor_scraper_health_check_head_with_http_info(opts)
286
+ data
287
+ end
288
+
289
+ # Realtor scraper health check
290
+ # Check health of the realtor scraper service (accepts HEAD for UptimeRobot).
291
+ # @param [Hash] opts the optional parameters
292
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
293
+ def realtor_realtor_scraper_health_check_head_with_http_info(opts = {})
294
+ if @api_client.config.debugging
295
+ @api_client.config.logger.debug 'Calling API: RealtorApi.realtor_realtor_scraper_health_check_head ...'
296
+ end
297
+ # resource path
298
+ local_var_path = '/v1/realtor/health'
299
+
300
+ # query parameters
301
+ query_params = opts[:query_params] || {}
302
+
303
+ # header parameters
304
+ header_params = opts[:header_params] || {}
305
+ # HTTP header 'Accept' (if needed)
306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
307
+
308
+ # form parameters
309
+ form_params = opts[:form_params] || {}
310
+
311
+ # http body (model)
312
+ post_body = opts[:debug_body]
313
+
314
+ # return_type
315
+ return_type = opts[:debug_return_type] || 'Object'
316
+
317
+ # auth_names
318
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
319
+
320
+ new_options = opts.merge(
321
+ :operation => :"RealtorApi.realtor_realtor_scraper_health_check_head",
322
+ :header_params => header_params,
323
+ :query_params => query_params,
324
+ :form_params => form_params,
325
+ :body => post_body,
326
+ :auth_names => auth_names,
327
+ :return_type => return_type
328
+ )
329
+
330
+ data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
331
+ if @api_client.config.debugging
332
+ @api_client.config.logger.debug "API called: RealtorApi#realtor_realtor_scraper_health_check_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
333
+ end
334
+ return data, status_code, headers
335
+ end
336
+
337
+ # Search property listings
338
+ # Search for-sale/for-rent/sold listings with rich filters.
339
+ # @param [Hash] opts the optional parameters
340
+ # @option opts [String] :location &#39;Austin, TX&#39;, a ZIP, &#39;Toronto, ON&#39;…
341
+ # @option opts [String] :market us (realtor.com) | ca (realtor.ca) (default to 'us')
342
+ # @option opts [String] :status for_sale | for_rent | sold | pending (default to 'for_sale')
343
+ # @option opts [Float] :price_min
344
+ # @option opts [Float] :price_max
345
+ # @option opts [Integer] :beds_min
346
+ # @option opts [Integer] :baths_min
347
+ # @option opts [Integer] :sqft_min US only
348
+ # @option opts [Integer] :sqft_max US only
349
+ # @option opts [String] :property_type US only, CSV of property types
350
+ # @option opts [String] :sort relevant | newest | price_low | price_high | photo_count (default to 'relevant')
351
+ # @option opts [Integer] :page (default to 1)
352
+ # @option opts [Integer] :limit
353
+ # @option opts [Float] :lat_min CA bbox south
354
+ # @option opts [Float] :lat_max CA bbox north
355
+ # @option opts [Float] :lng_min CA bbox west
356
+ # @option opts [Float] :lng_max CA bbox east
357
+ # @return [Object]
358
+ def realtor_search_property_listings(opts = {})
359
+ data, _status_code, _headers = realtor_search_property_listings_with_http_info(opts)
360
+ data
361
+ end
362
+
363
+ # Search property listings
364
+ # Search for-sale/for-rent/sold listings with rich filters.
365
+ # @param [Hash] opts the optional parameters
366
+ # @option opts [String] :location &#39;Austin, TX&#39;, a ZIP, &#39;Toronto, ON&#39;…
367
+ # @option opts [String] :market us (realtor.com) | ca (realtor.ca) (default to 'us')
368
+ # @option opts [String] :status for_sale | for_rent | sold | pending (default to 'for_sale')
369
+ # @option opts [Float] :price_min
370
+ # @option opts [Float] :price_max
371
+ # @option opts [Integer] :beds_min
372
+ # @option opts [Integer] :baths_min
373
+ # @option opts [Integer] :sqft_min US only
374
+ # @option opts [Integer] :sqft_max US only
375
+ # @option opts [String] :property_type US only, CSV of property types
376
+ # @option opts [String] :sort relevant | newest | price_low | price_high | photo_count (default to 'relevant')
377
+ # @option opts [Integer] :page (default to 1)
378
+ # @option opts [Integer] :limit
379
+ # @option opts [Float] :lat_min CA bbox south
380
+ # @option opts [Float] :lat_max CA bbox north
381
+ # @option opts [Float] :lng_min CA bbox west
382
+ # @option opts [Float] :lng_max CA bbox east
383
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
384
+ def realtor_search_property_listings_with_http_info(opts = {})
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug 'Calling API: RealtorApi.realtor_search_property_listings ...'
387
+ end
388
+ if @api_client.config.client_side_validation && !opts[:'price_min'].nil? && opts[:'price_min'] < 0
389
+ fail ArgumentError, 'invalid value for "opts[:"price_min"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 0.'
390
+ end
391
+
392
+ if @api_client.config.client_side_validation && !opts[:'price_max'].nil? && opts[:'price_max'] < 0
393
+ fail ArgumentError, 'invalid value for "opts[:"price_max"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 0.'
394
+ end
395
+
396
+ if @api_client.config.client_side_validation && !opts[:'beds_min'].nil? && opts[:'beds_min'] < 0
397
+ fail ArgumentError, 'invalid value for "opts[:"beds_min"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 0.'
398
+ end
399
+
400
+ if @api_client.config.client_side_validation && !opts[:'baths_min'].nil? && opts[:'baths_min'] < 0
401
+ fail ArgumentError, 'invalid value for "opts[:"baths_min"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 0.'
402
+ end
403
+
404
+ if @api_client.config.client_side_validation && !opts[:'sqft_min'].nil? && opts[:'sqft_min'] < 0
405
+ fail ArgumentError, 'invalid value for "opts[:"sqft_min"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 0.'
406
+ end
407
+
408
+ if @api_client.config.client_side_validation && !opts[:'sqft_max'].nil? && opts[:'sqft_max'] < 0
409
+ fail ArgumentError, 'invalid value for "opts[:"sqft_max"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 0.'
410
+ end
411
+
412
+ if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
413
+ fail ArgumentError, 'invalid value for "opts[:"page"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 1.'
414
+ end
415
+
416
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 200
417
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RealtorApi.realtor_search_property_listings, must be smaller than or equal to 200.'
418
+ end
419
+
420
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
421
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling RealtorApi.realtor_search_property_listings, must be greater than or equal to 1.'
422
+ end
423
+
424
+ # resource path
425
+ local_var_path = '/v1/realtor/search'
426
+
427
+ # query parameters
428
+ query_params = opts[:query_params] || {}
429
+ query_params[:'location'] = opts[:'location'] if !opts[:'location'].nil?
430
+ query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
431
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
432
+ query_params[:'price_min'] = opts[:'price_min'] if !opts[:'price_min'].nil?
433
+ query_params[:'price_max'] = opts[:'price_max'] if !opts[:'price_max'].nil?
434
+ query_params[:'beds_min'] = opts[:'beds_min'] if !opts[:'beds_min'].nil?
435
+ query_params[:'baths_min'] = opts[:'baths_min'] if !opts[:'baths_min'].nil?
436
+ query_params[:'sqft_min'] = opts[:'sqft_min'] if !opts[:'sqft_min'].nil?
437
+ query_params[:'sqft_max'] = opts[:'sqft_max'] if !opts[:'sqft_max'].nil?
438
+ query_params[:'property_type'] = opts[:'property_type'] if !opts[:'property_type'].nil?
439
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
440
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
441
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
442
+ query_params[:'lat_min'] = opts[:'lat_min'] if !opts[:'lat_min'].nil?
443
+ query_params[:'lat_max'] = opts[:'lat_max'] if !opts[:'lat_max'].nil?
444
+ query_params[:'lng_min'] = opts[:'lng_min'] if !opts[:'lng_min'].nil?
445
+ query_params[:'lng_max'] = opts[:'lng_max'] if !opts[:'lng_max'].nil?
446
+
447
+ # header parameters
448
+ header_params = opts[:header_params] || {}
449
+ # HTTP header 'Accept' (if needed)
450
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
451
+
452
+ # form parameters
453
+ form_params = opts[:form_params] || {}
454
+
455
+ # http body (model)
456
+ post_body = opts[:debug_body]
457
+
458
+ # return_type
459
+ return_type = opts[:debug_return_type] || 'Object'
460
+
461
+ # auth_names
462
+ auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
463
+
464
+ new_options = opts.merge(
465
+ :operation => :"RealtorApi.realtor_search_property_listings",
466
+ :header_params => header_params,
467
+ :query_params => query_params,
468
+ :form_params => form_params,
469
+ :body => post_body,
470
+ :auth_names => auth_names,
471
+ :return_type => return_type
472
+ )
473
+
474
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
475
+ if @api_client.config.debugging
476
+ @api_client.config.logger.debug "API called: RealtorApi#realtor_search_property_listings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
477
+ end
478
+ return data, status_code, headers
479
+ end
480
+ end
481
+ end