scrapebadger 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +548 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +76 -0
- data/docs/AccountInfo.md +28 -0
- data/docs/AmazonApi.md +1244 -0
- data/docs/ApartmentsApi.md +373 -0
- data/docs/BaiduApi.md +447 -0
- data/docs/BillingLogListResponse.md +24 -0
- data/docs/BillingLogResponse.md +32 -0
- data/docs/BingApi.md +610 -0
- data/docs/ChatGPTApi.md +521 -0
- data/docs/DepopApi.md +542 -0
- data/docs/DuckDuckGoApi.md +700 -0
- data/docs/EBayApi.md +1019 -0
- data/docs/FacebookApi.md +1671 -0
- data/docs/FilterRuleCreate.md +28 -0
- data/docs/FilterRuleDeliveryLogListResponse.md +24 -0
- data/docs/FilterRuleDeliveryLogResponse.md +44 -0
- data/docs/FilterRuleListResponse.md +24 -0
- data/docs/FilterRuleResponse.md +40 -0
- data/docs/FilterRuleUpdate.md +30 -0
- data/docs/FilterRuleValidateRequest.md +18 -0
- data/docs/FilterRuleValidateResponse.md +22 -0
- data/docs/GoogleApi.md +3175 -0
- data/docs/HTTPValidationError.md +18 -0
- data/docs/IdealistaApi.md +822 -0
- data/docs/ImmobiliareApi.md +773 -0
- data/docs/InstagramApi.md +1673 -0
- data/docs/LeboncoinApi.md +884 -0
- data/docs/LinkedInApi.md +925 -0
- data/docs/LoopNetApi.md +529 -0
- data/docs/PortalApiRoutersV1TwitterFilterRulesFilterRulePricingResponse.md +20 -0
- data/docs/RealtorApi.md +474 -0
- data/docs/RedditApi.md +1677 -0
- data/docs/RedfinApi.md +616 -0
- data/docs/StreamMonitorCreate.md +26 -0
- data/docs/StreamMonitorListResponse.md +24 -0
- data/docs/StreamMonitorResponse.md +42 -0
- data/docs/StreamMonitorUpdate.md +28 -0
- data/docs/SubscriptionInfo.md +40 -0
- data/docs/TikTokApi.md +2104 -0
- data/docs/TweetDeliveryLogListResponse.md +24 -0
- data/docs/TweetDeliveryLogResponse.md +44 -0
- data/docs/TwitterApi.md +4091 -0
- data/docs/ValidationError.md +22 -0
- data/docs/ValidationErrorLocInner.md +15 -0
- data/docs/VintedApi.md +766 -0
- data/docs/WalmartApi.md +904 -0
- data/docs/WebApi.md +634 -0
- data/docs/WebhookCreate.md +22 -0
- data/docs/WebhookListItem.md +28 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookResponse.md +26 -0
- data/docs/WebhookTestRequest.md +18 -0
- data/docs/WebhookTestResponse.md +24 -0
- data/docs/YahooApi.md +602 -0
- data/docs/YandexApi.md +450 -0
- data/docs/YouTubeApi.md +2872 -0
- data/docs/ZillowApi.md +622 -0
- data/git_push.sh +57 -0
- data/lib/scrapebadger/api/account_api.rb +79 -0
- data/lib/scrapebadger/api/amazon_api.rb +1165 -0
- data/lib/scrapebadger/api/apartments_api.rb +377 -0
- data/lib/scrapebadger/api/baidu_api.rb +436 -0
- data/lib/scrapebadger/api/bing_api.rb +580 -0
- data/lib/scrapebadger/api/chat_gpt_api.rb +466 -0
- data/lib/scrapebadger/api/depop_api.rb +518 -0
- data/lib/scrapebadger/api/duck_duck_go_api.rb +675 -0
- data/lib/scrapebadger/api/e_bay_api.rb +1029 -0
- data/lib/scrapebadger/api/facebook_api.rb +1492 -0
- data/lib/scrapebadger/api/google_api.rb +3191 -0
- data/lib/scrapebadger/api/idealista_api.rb +864 -0
- data/lib/scrapebadger/api/immobiliare_api.rb +734 -0
- data/lib/scrapebadger/api/instagram_api.rb +1555 -0
- data/lib/scrapebadger/api/leboncoin_api.rb +818 -0
- data/lib/scrapebadger/api/linked_in_api.rb +832 -0
- data/lib/scrapebadger/api/loop_net_api.rb +503 -0
- data/lib/scrapebadger/api/realtor_api.rb +481 -0
- data/lib/scrapebadger/api/reddit_api.rb +1601 -0
- data/lib/scrapebadger/api/redfin_api.rb +625 -0
- data/lib/scrapebadger/api/tik_tok_api.rb +2029 -0
- data/lib/scrapebadger/api/twitter_api.rb +3696 -0
- data/lib/scrapebadger/api/vinted_api.rb +705 -0
- data/lib/scrapebadger/api/walmart_api.rb +876 -0
- data/lib/scrapebadger/api/web_api.rb +547 -0
- data/lib/scrapebadger/api/yahoo_api.rb +560 -0
- data/lib/scrapebadger/api/yandex_api.rb +422 -0
- data/lib/scrapebadger/api/you_tube_api.rb +2520 -0
- data/lib/scrapebadger/api/zillow_api.rb +634 -0
- data/lib/scrapebadger/api_client.rb +394 -0
- data/lib/scrapebadger/api_error.rb +58 -0
- data/lib/scrapebadger/configuration.rb +308 -0
- data/lib/scrapebadger/models/account_info.rb +288 -0
- data/lib/scrapebadger/models/billing_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/billing_log_response.rb +334 -0
- data/lib/scrapebadger/models/filter_rule_create.rb +427 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/filter_rule_list_response.rb +272 -0
- data/lib/scrapebadger/models/filter_rule_response.rb +390 -0
- data/lib/scrapebadger/models/filter_rule_update.rb +389 -0
- data/lib/scrapebadger/models/filter_rule_validate_request.rb +250 -0
- data/lib/scrapebadger/models/filter_rule_validate_response.rb +248 -0
- data/lib/scrapebadger/models/http_validation_error.rb +216 -0
- data/lib/scrapebadger/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response.rb +238 -0
- data/lib/scrapebadger/models/stream_monitor_create.rb +373 -0
- data/lib/scrapebadger/models/stream_monitor_list_response.rb +272 -0
- data/lib/scrapebadger/models/stream_monitor_response.rb +406 -0
- data/lib/scrapebadger/models/stream_monitor_update.rb +335 -0
- data/lib/scrapebadger/models/subscription_info.rb +352 -0
- data/lib/scrapebadger/models/tweet_delivery_log_list_response.rb +272 -0
- data/lib/scrapebadger/models/tweet_delivery_log_response.rb +422 -0
- data/lib/scrapebadger/models/validation_error.rb +255 -0
- data/lib/scrapebadger/models/validation_error_loc_inner.rb +104 -0
- data/lib/scrapebadger/models/webhook_create.rb +282 -0
- data/lib/scrapebadger/models/webhook_list_item.rb +302 -0
- data/lib/scrapebadger/models/webhook_list_response.rb +240 -0
- data/lib/scrapebadger/models/webhook_response.rb +286 -0
- data/lib/scrapebadger/models/webhook_test_request.rb +223 -0
- data/lib/scrapebadger/models/webhook_test_response.rb +259 -0
- data/lib/scrapebadger/version.rb +15 -0
- data/lib/scrapebadger.rb +96 -0
- data/scrapebadger.gemspec +39 -0
- data/spec/api/account_api_spec.rb +46 -0
- data/spec/api/amazon_api_spec.rb +258 -0
- data/spec/api/apartments_api_spec.rb +98 -0
- data/spec/api/baidu_api_spec.rb +109 -0
- data/spec/api/bing_api_spec.rb +141 -0
- data/spec/api/chat_gpt_api_spec.rb +123 -0
- data/spec/api/depop_api_spec.rb +132 -0
- data/spec/api/duck_duck_go_api_spec.rb +162 -0
- data/spec/api/e_bay_api_spec.rb +222 -0
- data/spec/api/facebook_api_spec.rb +326 -0
- data/spec/api/google_api_spec.rb +649 -0
- data/spec/api/idealista_api_spec.rb +197 -0
- data/spec/api/immobiliare_api_spec.rb +174 -0
- data/spec/api/instagram_api_spec.rb +309 -0
- data/spec/api/leboncoin_api_spec.rb +184 -0
- data/spec/api/linked_in_api_spec.rb +197 -0
- data/spec/api/loop_net_api_spec.rb +127 -0
- data/spec/api/realtor_api_spec.rb +123 -0
- data/spec/api/reddit_api_spec.rb +331 -0
- data/spec/api/redfin_api_spec.rb +147 -0
- data/spec/api/tik_tok_api_spec.rb +413 -0
- data/spec/api/twitter_api_spec.rb +735 -0
- data/spec/api/vinted_api_spec.rb +169 -0
- data/spec/api/walmart_api_spec.rb +192 -0
- data/spec/api/web_api_spec.rb +136 -0
- data/spec/api/yahoo_api_spec.rb +137 -0
- data/spec/api/yandex_api_spec.rb +111 -0
- data/spec/api/you_tube_api_spec.rb +500 -0
- data/spec/api/zillow_api_spec.rb +150 -0
- data/spec/models/account_info_spec.rb +66 -0
- data/spec/models/billing_log_list_response_spec.rb +54 -0
- data/spec/models/billing_log_response_spec.rb +78 -0
- data/spec/models/filter_rule_create_spec.rb +66 -0
- data/spec/models/filter_rule_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_delivery_log_response_spec.rb +114 -0
- data/spec/models/filter_rule_list_response_spec.rb +54 -0
- data/spec/models/filter_rule_response_spec.rb +102 -0
- data/spec/models/filter_rule_update_spec.rb +72 -0
- data/spec/models/filter_rule_validate_request_spec.rb +36 -0
- data/spec/models/filter_rule_validate_response_spec.rb +48 -0
- data/spec/models/http_validation_error_spec.rb +36 -0
- data/spec/models/portal_api_routers_v1_twitter_filter_rules_filter_rule_pricing_response_spec.rb +42 -0
- data/spec/models/stream_monitor_create_spec.rb +60 -0
- data/spec/models/stream_monitor_list_response_spec.rb +54 -0
- data/spec/models/stream_monitor_response_spec.rb +108 -0
- data/spec/models/stream_monitor_update_spec.rb +66 -0
- data/spec/models/subscription_info_spec.rb +102 -0
- data/spec/models/tweet_delivery_log_list_response_spec.rb +54 -0
- data/spec/models/tweet_delivery_log_response_spec.rb +114 -0
- data/spec/models/validation_error_loc_inner_spec.rb +21 -0
- data/spec/models/validation_error_spec.rb +48 -0
- data/spec/models/webhook_create_spec.rb +48 -0
- data/spec/models/webhook_list_item_spec.rb +66 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +60 -0
- data/spec/models/webhook_test_request_spec.rb +36 -0
- data/spec/models/webhook_test_response_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- metadata +324 -0
|
@@ -0,0 +1,503 @@
|
|
|
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 LoopNetApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Get broker profile
|
|
23
|
+
# Get a LoopNet broker profile + their listings by slug + id.
|
|
24
|
+
# @param slug [String]
|
|
25
|
+
# @param broker_id [String]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @option opts [String] :market us|ca|uk|fr|es (default to 'us')
|
|
28
|
+
# @return [Object]
|
|
29
|
+
def loopnet_get_broker_profile(slug, broker_id, opts = {})
|
|
30
|
+
data, _status_code, _headers = loopnet_get_broker_profile_with_http_info(slug, broker_id, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Get broker profile
|
|
35
|
+
# Get a LoopNet broker profile + their listings by slug + id.
|
|
36
|
+
# @param slug [String]
|
|
37
|
+
# @param broker_id [String]
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @option opts [String] :market us|ca|uk|fr|es (default to 'us')
|
|
40
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
41
|
+
def loopnet_get_broker_profile_with_http_info(slug, broker_id, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_get_broker_profile ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'slug' is set
|
|
46
|
+
if @api_client.config.client_side_validation && slug.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'slug' when calling LoopNetApi.loopnet_get_broker_profile"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'broker_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && broker_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'broker_id' when calling LoopNetApi.loopnet_get_broker_profile"
|
|
52
|
+
end
|
|
53
|
+
# resource path
|
|
54
|
+
local_var_path = '/v1/loopnet/brokers/{slug}/{broker_id}'.sub('{' + 'slug' + '}', CGI.escape(slug.to_s)).sub('{' + 'broker_id' + '}', CGI.escape(broker_id.to_s))
|
|
55
|
+
|
|
56
|
+
# query parameters
|
|
57
|
+
query_params = opts[:query_params] || {}
|
|
58
|
+
query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
|
|
59
|
+
|
|
60
|
+
# header parameters
|
|
61
|
+
header_params = opts[:header_params] || {}
|
|
62
|
+
# HTTP header 'Accept' (if needed)
|
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
64
|
+
|
|
65
|
+
# form parameters
|
|
66
|
+
form_params = opts[:form_params] || {}
|
|
67
|
+
|
|
68
|
+
# http body (model)
|
|
69
|
+
post_body = opts[:debug_body]
|
|
70
|
+
|
|
71
|
+
# return_type
|
|
72
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
73
|
+
|
|
74
|
+
# auth_names
|
|
75
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
76
|
+
|
|
77
|
+
new_options = opts.merge(
|
|
78
|
+
:operation => :"LoopNetApi.loopnet_get_broker_profile",
|
|
79
|
+
:header_params => header_params,
|
|
80
|
+
:query_params => query_params,
|
|
81
|
+
:form_params => form_params,
|
|
82
|
+
:body => post_body,
|
|
83
|
+
:auth_names => auth_names,
|
|
84
|
+
:return_type => return_type
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
88
|
+
if @api_client.config.debugging
|
|
89
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_get_broker_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
90
|
+
end
|
|
91
|
+
return data, status_code, headers
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Get listing detail
|
|
95
|
+
# Get a single LoopNet listing's full detail by its numeric id.
|
|
96
|
+
# @param listing_id [String]
|
|
97
|
+
# @param [Hash] opts the optional parameters
|
|
98
|
+
# @option opts [String] :market us|ca|uk|fr|es (default to 'us')
|
|
99
|
+
# @return [Object]
|
|
100
|
+
def loopnet_get_listing_detail(listing_id, opts = {})
|
|
101
|
+
data, _status_code, _headers = loopnet_get_listing_detail_with_http_info(listing_id, opts)
|
|
102
|
+
data
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Get listing detail
|
|
106
|
+
# Get a single LoopNet listing's full detail by its numeric id.
|
|
107
|
+
# @param listing_id [String]
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @option opts [String] :market us|ca|uk|fr|es (default to 'us')
|
|
110
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
111
|
+
def loopnet_get_listing_detail_with_http_info(listing_id, opts = {})
|
|
112
|
+
if @api_client.config.debugging
|
|
113
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_get_listing_detail ...'
|
|
114
|
+
end
|
|
115
|
+
# verify the required parameter 'listing_id' is set
|
|
116
|
+
if @api_client.config.client_side_validation && listing_id.nil?
|
|
117
|
+
fail ArgumentError, "Missing the required parameter 'listing_id' when calling LoopNetApi.loopnet_get_listing_detail"
|
|
118
|
+
end
|
|
119
|
+
# resource path
|
|
120
|
+
local_var_path = '/v1/loopnet/listings/{listing_id}'.sub('{' + 'listing_id' + '}', CGI.escape(listing_id.to_s))
|
|
121
|
+
|
|
122
|
+
# query parameters
|
|
123
|
+
query_params = opts[:query_params] || {}
|
|
124
|
+
query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
|
|
125
|
+
|
|
126
|
+
# header parameters
|
|
127
|
+
header_params = opts[:header_params] || {}
|
|
128
|
+
# HTTP header 'Accept' (if needed)
|
|
129
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
130
|
+
|
|
131
|
+
# form parameters
|
|
132
|
+
form_params = opts[:form_params] || {}
|
|
133
|
+
|
|
134
|
+
# http body (model)
|
|
135
|
+
post_body = opts[:debug_body]
|
|
136
|
+
|
|
137
|
+
# return_type
|
|
138
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
139
|
+
|
|
140
|
+
# auth_names
|
|
141
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
142
|
+
|
|
143
|
+
new_options = opts.merge(
|
|
144
|
+
:operation => :"LoopNetApi.loopnet_get_listing_detail",
|
|
145
|
+
:header_params => header_params,
|
|
146
|
+
:query_params => query_params,
|
|
147
|
+
:form_params => form_params,
|
|
148
|
+
:body => post_body,
|
|
149
|
+
:auth_names => auth_names,
|
|
150
|
+
:return_type => return_type
|
|
151
|
+
)
|
|
152
|
+
|
|
153
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_get_listing_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
156
|
+
end
|
|
157
|
+
return data, status_code, headers
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# List coverage markets
|
|
161
|
+
# List LoopNet coverage markets (US, CA, UK, FR, ES).
|
|
162
|
+
# @param [Hash] opts the optional parameters
|
|
163
|
+
# @return [Object]
|
|
164
|
+
def loopnet_list_coverage_markets(opts = {})
|
|
165
|
+
data, _status_code, _headers = loopnet_list_coverage_markets_with_http_info(opts)
|
|
166
|
+
data
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# List coverage markets
|
|
170
|
+
# List LoopNet coverage markets (US, CA, UK, FR, ES).
|
|
171
|
+
# @param [Hash] opts the optional parameters
|
|
172
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
173
|
+
def loopnet_list_coverage_markets_with_http_info(opts = {})
|
|
174
|
+
if @api_client.config.debugging
|
|
175
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_list_coverage_markets ...'
|
|
176
|
+
end
|
|
177
|
+
# resource path
|
|
178
|
+
local_var_path = '/v1/loopnet/markets'
|
|
179
|
+
|
|
180
|
+
# query parameters
|
|
181
|
+
query_params = opts[:query_params] || {}
|
|
182
|
+
|
|
183
|
+
# header parameters
|
|
184
|
+
header_params = opts[:header_params] || {}
|
|
185
|
+
# HTTP header 'Accept' (if needed)
|
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
187
|
+
|
|
188
|
+
# form parameters
|
|
189
|
+
form_params = opts[:form_params] || {}
|
|
190
|
+
|
|
191
|
+
# http body (model)
|
|
192
|
+
post_body = opts[:debug_body]
|
|
193
|
+
|
|
194
|
+
# return_type
|
|
195
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
196
|
+
|
|
197
|
+
# auth_names
|
|
198
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
199
|
+
|
|
200
|
+
new_options = opts.merge(
|
|
201
|
+
:operation => :"LoopNetApi.loopnet_list_coverage_markets",
|
|
202
|
+
:header_params => header_params,
|
|
203
|
+
:query_params => query_params,
|
|
204
|
+
:form_params => form_params,
|
|
205
|
+
:body => post_body,
|
|
206
|
+
:auth_names => auth_names,
|
|
207
|
+
:return_type => return_type
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
211
|
+
if @api_client.config.debugging
|
|
212
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_list_coverage_markets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
213
|
+
end
|
|
214
|
+
return data, status_code, headers
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# List property types
|
|
218
|
+
# List LoopNet property-type facets accepted by /search.
|
|
219
|
+
# @param [Hash] opts the optional parameters
|
|
220
|
+
# @return [Object]
|
|
221
|
+
def loopnet_list_property_types(opts = {})
|
|
222
|
+
data, _status_code, _headers = loopnet_list_property_types_with_http_info(opts)
|
|
223
|
+
data
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# List property types
|
|
227
|
+
# List LoopNet property-type facets accepted by /search.
|
|
228
|
+
# @param [Hash] opts the optional parameters
|
|
229
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
230
|
+
def loopnet_list_property_types_with_http_info(opts = {})
|
|
231
|
+
if @api_client.config.debugging
|
|
232
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_list_property_types ...'
|
|
233
|
+
end
|
|
234
|
+
# resource path
|
|
235
|
+
local_var_path = '/v1/loopnet/property-types'
|
|
236
|
+
|
|
237
|
+
# query parameters
|
|
238
|
+
query_params = opts[:query_params] || {}
|
|
239
|
+
|
|
240
|
+
# header parameters
|
|
241
|
+
header_params = opts[:header_params] || {}
|
|
242
|
+
# HTTP header 'Accept' (if needed)
|
|
243
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
244
|
+
|
|
245
|
+
# form parameters
|
|
246
|
+
form_params = opts[:form_params] || {}
|
|
247
|
+
|
|
248
|
+
# http body (model)
|
|
249
|
+
post_body = opts[:debug_body]
|
|
250
|
+
|
|
251
|
+
# return_type
|
|
252
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
253
|
+
|
|
254
|
+
# auth_names
|
|
255
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
256
|
+
|
|
257
|
+
new_options = opts.merge(
|
|
258
|
+
:operation => :"LoopNetApi.loopnet_list_property_types",
|
|
259
|
+
:header_params => header_params,
|
|
260
|
+
:query_params => query_params,
|
|
261
|
+
:form_params => form_params,
|
|
262
|
+
:body => post_body,
|
|
263
|
+
:auth_names => auth_names,
|
|
264
|
+
:return_type => return_type
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
268
|
+
if @api_client.config.debugging
|
|
269
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_list_property_types\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
270
|
+
end
|
|
271
|
+
return data, status_code, headers
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# LoopNet scraper health check
|
|
275
|
+
# Check health of the LoopNet scraper service (accepts HEAD for UptimeRobot).
|
|
276
|
+
# @param [Hash] opts the optional parameters
|
|
277
|
+
# @return [Object]
|
|
278
|
+
def loopnet_loopnet_scraper_health_check(opts = {})
|
|
279
|
+
data, _status_code, _headers = loopnet_loopnet_scraper_health_check_with_http_info(opts)
|
|
280
|
+
data
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# LoopNet scraper health check
|
|
284
|
+
# Check health of the LoopNet scraper service (accepts HEAD for UptimeRobot).
|
|
285
|
+
# @param [Hash] opts the optional parameters
|
|
286
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
287
|
+
def loopnet_loopnet_scraper_health_check_with_http_info(opts = {})
|
|
288
|
+
if @api_client.config.debugging
|
|
289
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_loopnet_scraper_health_check ...'
|
|
290
|
+
end
|
|
291
|
+
# resource path
|
|
292
|
+
local_var_path = '/v1/loopnet/health'
|
|
293
|
+
|
|
294
|
+
# query parameters
|
|
295
|
+
query_params = opts[:query_params] || {}
|
|
296
|
+
|
|
297
|
+
# header parameters
|
|
298
|
+
header_params = opts[:header_params] || {}
|
|
299
|
+
# HTTP header 'Accept' (if needed)
|
|
300
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
301
|
+
|
|
302
|
+
# form parameters
|
|
303
|
+
form_params = opts[:form_params] || {}
|
|
304
|
+
|
|
305
|
+
# http body (model)
|
|
306
|
+
post_body = opts[:debug_body]
|
|
307
|
+
|
|
308
|
+
# return_type
|
|
309
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
310
|
+
|
|
311
|
+
# auth_names
|
|
312
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
313
|
+
|
|
314
|
+
new_options = opts.merge(
|
|
315
|
+
:operation => :"LoopNetApi.loopnet_loopnet_scraper_health_check",
|
|
316
|
+
:header_params => header_params,
|
|
317
|
+
:query_params => query_params,
|
|
318
|
+
:form_params => form_params,
|
|
319
|
+
:body => post_body,
|
|
320
|
+
:auth_names => auth_names,
|
|
321
|
+
:return_type => return_type
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
325
|
+
if @api_client.config.debugging
|
|
326
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_loopnet_scraper_health_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
327
|
+
end
|
|
328
|
+
return data, status_code, headers
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
# LoopNet scraper health check
|
|
332
|
+
# Check health of the LoopNet scraper service (accepts HEAD for UptimeRobot).
|
|
333
|
+
# @param [Hash] opts the optional parameters
|
|
334
|
+
# @return [Object]
|
|
335
|
+
def loopnet_loopnet_scraper_health_check_head(opts = {})
|
|
336
|
+
data, _status_code, _headers = loopnet_loopnet_scraper_health_check_head_with_http_info(opts)
|
|
337
|
+
data
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# LoopNet scraper health check
|
|
341
|
+
# Check health of the LoopNet scraper service (accepts HEAD for UptimeRobot).
|
|
342
|
+
# @param [Hash] opts the optional parameters
|
|
343
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
344
|
+
def loopnet_loopnet_scraper_health_check_head_with_http_info(opts = {})
|
|
345
|
+
if @api_client.config.debugging
|
|
346
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_loopnet_scraper_health_check_head ...'
|
|
347
|
+
end
|
|
348
|
+
# resource path
|
|
349
|
+
local_var_path = '/v1/loopnet/health'
|
|
350
|
+
|
|
351
|
+
# query parameters
|
|
352
|
+
query_params = opts[:query_params] || {}
|
|
353
|
+
|
|
354
|
+
# header parameters
|
|
355
|
+
header_params = opts[:header_params] || {}
|
|
356
|
+
# HTTP header 'Accept' (if needed)
|
|
357
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
358
|
+
|
|
359
|
+
# form parameters
|
|
360
|
+
form_params = opts[:form_params] || {}
|
|
361
|
+
|
|
362
|
+
# http body (model)
|
|
363
|
+
post_body = opts[:debug_body]
|
|
364
|
+
|
|
365
|
+
# return_type
|
|
366
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
367
|
+
|
|
368
|
+
# auth_names
|
|
369
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
370
|
+
|
|
371
|
+
new_options = opts.merge(
|
|
372
|
+
:operation => :"LoopNetApi.loopnet_loopnet_scraper_health_check_head",
|
|
373
|
+
:header_params => header_params,
|
|
374
|
+
:query_params => query_params,
|
|
375
|
+
:form_params => form_params,
|
|
376
|
+
:body => post_body,
|
|
377
|
+
:auth_names => auth_names,
|
|
378
|
+
:return_type => return_type
|
|
379
|
+
)
|
|
380
|
+
|
|
381
|
+
data, status_code, headers = @api_client.call_api(:HEAD, local_var_path, new_options)
|
|
382
|
+
if @api_client.config.debugging
|
|
383
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_loopnet_scraper_health_check_head\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
384
|
+
end
|
|
385
|
+
return data, status_code, headers
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Search commercial real estate
|
|
389
|
+
# Search LoopNet for-lease / for-sale / auction listings across all markets.
|
|
390
|
+
# @param location [String] City/state, ZIP, state code, or 'usa'
|
|
391
|
+
# @param [Hash] opts the optional parameters
|
|
392
|
+
# @option opts [String] :market us|ca|uk|fr|es (default to 'us')
|
|
393
|
+
# @option opts [String] :listing_type for-lease|for-sale|auctions (default to 'for-lease')
|
|
394
|
+
# @option opts [String] :property_type Slug from /property-types
|
|
395
|
+
# @option opts [Integer] :page (default to 1)
|
|
396
|
+
# @option opts [Integer] :min_price
|
|
397
|
+
# @option opts [Integer] :max_price
|
|
398
|
+
# @option opts [String] :price_type unit | sf | acre
|
|
399
|
+
# @option opts [Integer] :min_size
|
|
400
|
+
# @option opts [Integer] :max_size
|
|
401
|
+
# @return [Object]
|
|
402
|
+
def loopnet_search_commercial_real_estate(location, opts = {})
|
|
403
|
+
data, _status_code, _headers = loopnet_search_commercial_real_estate_with_http_info(location, opts)
|
|
404
|
+
data
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
# Search commercial real estate
|
|
408
|
+
# Search LoopNet for-lease / for-sale / auction listings across all markets.
|
|
409
|
+
# @param location [String] City/state, ZIP, state code, or 'usa'
|
|
410
|
+
# @param [Hash] opts the optional parameters
|
|
411
|
+
# @option opts [String] :market us|ca|uk|fr|es (default to 'us')
|
|
412
|
+
# @option opts [String] :listing_type for-lease|for-sale|auctions (default to 'for-lease')
|
|
413
|
+
# @option opts [String] :property_type Slug from /property-types
|
|
414
|
+
# @option opts [Integer] :page (default to 1)
|
|
415
|
+
# @option opts [Integer] :min_price
|
|
416
|
+
# @option opts [Integer] :max_price
|
|
417
|
+
# @option opts [String] :price_type unit | sf | acre
|
|
418
|
+
# @option opts [Integer] :min_size
|
|
419
|
+
# @option opts [Integer] :max_size
|
|
420
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
|
421
|
+
def loopnet_search_commercial_real_estate_with_http_info(location, opts = {})
|
|
422
|
+
if @api_client.config.debugging
|
|
423
|
+
@api_client.config.logger.debug 'Calling API: LoopNetApi.loopnet_search_commercial_real_estate ...'
|
|
424
|
+
end
|
|
425
|
+
# verify the required parameter 'location' is set
|
|
426
|
+
if @api_client.config.client_side_validation && location.nil?
|
|
427
|
+
fail ArgumentError, "Missing the required parameter 'location' when calling LoopNetApi.loopnet_search_commercial_real_estate"
|
|
428
|
+
end
|
|
429
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] > 20
|
|
430
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LoopNetApi.loopnet_search_commercial_real_estate, must be smaller than or equal to 20.'
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
434
|
+
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling LoopNetApi.loopnet_search_commercial_real_estate, must be greater than or equal to 1.'
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
if @api_client.config.client_side_validation && !opts[:'min_price'].nil? && opts[:'min_price'] < 0
|
|
438
|
+
fail ArgumentError, 'invalid value for "opts[:"min_price"]" when calling LoopNetApi.loopnet_search_commercial_real_estate, must be greater than or equal to 0.'
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
if @api_client.config.client_side_validation && !opts[:'max_price'].nil? && opts[:'max_price'] < 0
|
|
442
|
+
fail ArgumentError, 'invalid value for "opts[:"max_price"]" when calling LoopNetApi.loopnet_search_commercial_real_estate, must be greater than or equal to 0.'
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
if @api_client.config.client_side_validation && !opts[:'min_size'].nil? && opts[:'min_size'] < 0
|
|
446
|
+
fail ArgumentError, 'invalid value for "opts[:"min_size"]" when calling LoopNetApi.loopnet_search_commercial_real_estate, must be greater than or equal to 0.'
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
if @api_client.config.client_side_validation && !opts[:'max_size'].nil? && opts[:'max_size'] < 0
|
|
450
|
+
fail ArgumentError, 'invalid value for "opts[:"max_size"]" when calling LoopNetApi.loopnet_search_commercial_real_estate, must be greater than or equal to 0.'
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# resource path
|
|
454
|
+
local_var_path = '/v1/loopnet/search'
|
|
455
|
+
|
|
456
|
+
# query parameters
|
|
457
|
+
query_params = opts[:query_params] || {}
|
|
458
|
+
query_params[:'location'] = location
|
|
459
|
+
query_params[:'market'] = opts[:'market'] if !opts[:'market'].nil?
|
|
460
|
+
query_params[:'listing_type'] = opts[:'listing_type'] if !opts[:'listing_type'].nil?
|
|
461
|
+
query_params[:'property_type'] = opts[:'property_type'] if !opts[:'property_type'].nil?
|
|
462
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
463
|
+
query_params[:'min_price'] = opts[:'min_price'] if !opts[:'min_price'].nil?
|
|
464
|
+
query_params[:'max_price'] = opts[:'max_price'] if !opts[:'max_price'].nil?
|
|
465
|
+
query_params[:'price_type'] = opts[:'price_type'] if !opts[:'price_type'].nil?
|
|
466
|
+
query_params[:'min_size'] = opts[:'min_size'] if !opts[:'min_size'].nil?
|
|
467
|
+
query_params[:'max_size'] = opts[:'max_size'] if !opts[:'max_size'].nil?
|
|
468
|
+
|
|
469
|
+
# header parameters
|
|
470
|
+
header_params = opts[:header_params] || {}
|
|
471
|
+
# HTTP header 'Accept' (if needed)
|
|
472
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
473
|
+
|
|
474
|
+
# form parameters
|
|
475
|
+
form_params = opts[:form_params] || {}
|
|
476
|
+
|
|
477
|
+
# http body (model)
|
|
478
|
+
post_body = opts[:debug_body]
|
|
479
|
+
|
|
480
|
+
# return_type
|
|
481
|
+
return_type = opts[:debug_return_type] || 'Object'
|
|
482
|
+
|
|
483
|
+
# auth_names
|
|
484
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth']
|
|
485
|
+
|
|
486
|
+
new_options = opts.merge(
|
|
487
|
+
:operation => :"LoopNetApi.loopnet_search_commercial_real_estate",
|
|
488
|
+
:header_params => header_params,
|
|
489
|
+
:query_params => query_params,
|
|
490
|
+
:form_params => form_params,
|
|
491
|
+
:body => post_body,
|
|
492
|
+
:auth_names => auth_names,
|
|
493
|
+
:return_type => return_type
|
|
494
|
+
)
|
|
495
|
+
|
|
496
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
497
|
+
if @api_client.config.debugging
|
|
498
|
+
@api_client.config.logger.debug "API called: LoopNetApi#loopnet_search_commercial_real_estate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
499
|
+
end
|
|
500
|
+
return data, status_code, headers
|
|
501
|
+
end
|
|
502
|
+
end
|
|
503
|
+
end
|