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,373 @@
|
|
|
1
|
+
# ScrapeBadger::ApartmentsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**apartments_apartments_scraper_health_check**](ApartmentsApi.md#apartments_apartments_scraper_health_check) | **GET** /v1/apartments/health | Apartments scraper health check |
|
|
8
|
+
| [**apartments_apartments_scraper_health_check_head**](ApartmentsApi.md#apartments_apartments_scraper_health_check_head) | **HEAD** /v1/apartments/health | Apartments scraper health check |
|
|
9
|
+
| [**apartments_get_property_detail_by_slug_id**](ApartmentsApi.md#apartments_get_property_detail_by_slug_id) | **GET** /v1/apartments/properties/{slug}/{property_id} | Get property detail by slug + id |
|
|
10
|
+
| [**apartments_get_property_detail_by_url**](ApartmentsApi.md#apartments_get_property_detail_by_url) | **GET** /v1/apartments/property | Get property detail by URL |
|
|
11
|
+
| [**apartments_search_rental_listings**](ApartmentsApi.md#apartments_search_rental_listings) | **GET** /v1/apartments/search | Search rental listings |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## apartments_apartments_scraper_health_check
|
|
15
|
+
|
|
16
|
+
> Object apartments_apartments_scraper_health_check
|
|
17
|
+
|
|
18
|
+
Apartments scraper health check
|
|
19
|
+
|
|
20
|
+
Check health of the Apartments scraper service (accepts HEAD for UptimeRobot).
|
|
21
|
+
|
|
22
|
+
### Examples
|
|
23
|
+
|
|
24
|
+
```ruby
|
|
25
|
+
require 'time'
|
|
26
|
+
require 'scrapebadger'
|
|
27
|
+
# setup authorization
|
|
28
|
+
ScrapeBadger.configure do |config|
|
|
29
|
+
# Configure API key authorization: ApiKeyAuth
|
|
30
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
32
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
api_instance = ScrapeBadger::ApartmentsApi.new
|
|
36
|
+
|
|
37
|
+
begin
|
|
38
|
+
# Apartments scraper health check
|
|
39
|
+
result = api_instance.apartments_apartments_scraper_health_check
|
|
40
|
+
p result
|
|
41
|
+
rescue ScrapeBadger::ApiError => e
|
|
42
|
+
puts "Error when calling ApartmentsApi->apartments_apartments_scraper_health_check: #{e}"
|
|
43
|
+
end
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### Using the apartments_apartments_scraper_health_check_with_http_info variant
|
|
47
|
+
|
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
|
49
|
+
|
|
50
|
+
> <Array(Object, Integer, Hash)> apartments_apartments_scraper_health_check_with_http_info
|
|
51
|
+
|
|
52
|
+
```ruby
|
|
53
|
+
begin
|
|
54
|
+
# Apartments scraper health check
|
|
55
|
+
data, status_code, headers = api_instance.apartments_apartments_scraper_health_check_with_http_info
|
|
56
|
+
p status_code # => 2xx
|
|
57
|
+
p headers # => { ... }
|
|
58
|
+
p data # => Object
|
|
59
|
+
rescue ScrapeBadger::ApiError => e
|
|
60
|
+
puts "Error when calling ApartmentsApi->apartments_apartments_scraper_health_check_with_http_info: #{e}"
|
|
61
|
+
end
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Parameters
|
|
65
|
+
|
|
66
|
+
This endpoint does not need any parameter.
|
|
67
|
+
|
|
68
|
+
### Return type
|
|
69
|
+
|
|
70
|
+
**Object**
|
|
71
|
+
|
|
72
|
+
### Authorization
|
|
73
|
+
|
|
74
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
75
|
+
|
|
76
|
+
### HTTP request headers
|
|
77
|
+
|
|
78
|
+
- **Content-Type**: Not defined
|
|
79
|
+
- **Accept**: application/json
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
## apartments_apartments_scraper_health_check_head
|
|
83
|
+
|
|
84
|
+
> Object apartments_apartments_scraper_health_check_head
|
|
85
|
+
|
|
86
|
+
Apartments scraper health check
|
|
87
|
+
|
|
88
|
+
Check health of the Apartments scraper service (accepts HEAD for UptimeRobot).
|
|
89
|
+
|
|
90
|
+
### Examples
|
|
91
|
+
|
|
92
|
+
```ruby
|
|
93
|
+
require 'time'
|
|
94
|
+
require 'scrapebadger'
|
|
95
|
+
# setup authorization
|
|
96
|
+
ScrapeBadger.configure do |config|
|
|
97
|
+
# Configure API key authorization: ApiKeyAuth
|
|
98
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
99
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
100
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
api_instance = ScrapeBadger::ApartmentsApi.new
|
|
104
|
+
|
|
105
|
+
begin
|
|
106
|
+
# Apartments scraper health check
|
|
107
|
+
result = api_instance.apartments_apartments_scraper_health_check_head
|
|
108
|
+
p result
|
|
109
|
+
rescue ScrapeBadger::ApiError => e
|
|
110
|
+
puts "Error when calling ApartmentsApi->apartments_apartments_scraper_health_check_head: #{e}"
|
|
111
|
+
end
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Using the apartments_apartments_scraper_health_check_head_with_http_info variant
|
|
115
|
+
|
|
116
|
+
This returns an Array which contains the response data, status code and headers.
|
|
117
|
+
|
|
118
|
+
> <Array(Object, Integer, Hash)> apartments_apartments_scraper_health_check_head_with_http_info
|
|
119
|
+
|
|
120
|
+
```ruby
|
|
121
|
+
begin
|
|
122
|
+
# Apartments scraper health check
|
|
123
|
+
data, status_code, headers = api_instance.apartments_apartments_scraper_health_check_head_with_http_info
|
|
124
|
+
p status_code # => 2xx
|
|
125
|
+
p headers # => { ... }
|
|
126
|
+
p data # => Object
|
|
127
|
+
rescue ScrapeBadger::ApiError => e
|
|
128
|
+
puts "Error when calling ApartmentsApi->apartments_apartments_scraper_health_check_head_with_http_info: #{e}"
|
|
129
|
+
end
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Parameters
|
|
133
|
+
|
|
134
|
+
This endpoint does not need any parameter.
|
|
135
|
+
|
|
136
|
+
### Return type
|
|
137
|
+
|
|
138
|
+
**Object**
|
|
139
|
+
|
|
140
|
+
### Authorization
|
|
141
|
+
|
|
142
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
143
|
+
|
|
144
|
+
### HTTP request headers
|
|
145
|
+
|
|
146
|
+
- **Content-Type**: Not defined
|
|
147
|
+
- **Accept**: application/json
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
## apartments_get_property_detail_by_slug_id
|
|
151
|
+
|
|
152
|
+
> Object apartments_get_property_detail_by_slug_id(slug, property_id)
|
|
153
|
+
|
|
154
|
+
Get property detail by slug + id
|
|
155
|
+
|
|
156
|
+
Get a property by its SEO slug and 7-character listing id.
|
|
157
|
+
|
|
158
|
+
### Examples
|
|
159
|
+
|
|
160
|
+
```ruby
|
|
161
|
+
require 'time'
|
|
162
|
+
require 'scrapebadger'
|
|
163
|
+
# setup authorization
|
|
164
|
+
ScrapeBadger.configure do |config|
|
|
165
|
+
# Configure API key authorization: ApiKeyAuth
|
|
166
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
167
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
168
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
api_instance = ScrapeBadger::ApartmentsApi.new
|
|
172
|
+
slug = 'slug_example' # String |
|
|
173
|
+
property_id = 'property_id_example' # String |
|
|
174
|
+
|
|
175
|
+
begin
|
|
176
|
+
# Get property detail by slug + id
|
|
177
|
+
result = api_instance.apartments_get_property_detail_by_slug_id(slug, property_id)
|
|
178
|
+
p result
|
|
179
|
+
rescue ScrapeBadger::ApiError => e
|
|
180
|
+
puts "Error when calling ApartmentsApi->apartments_get_property_detail_by_slug_id: #{e}"
|
|
181
|
+
end
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
#### Using the apartments_get_property_detail_by_slug_id_with_http_info variant
|
|
185
|
+
|
|
186
|
+
This returns an Array which contains the response data, status code and headers.
|
|
187
|
+
|
|
188
|
+
> <Array(Object, Integer, Hash)> apartments_get_property_detail_by_slug_id_with_http_info(slug, property_id)
|
|
189
|
+
|
|
190
|
+
```ruby
|
|
191
|
+
begin
|
|
192
|
+
# Get property detail by slug + id
|
|
193
|
+
data, status_code, headers = api_instance.apartments_get_property_detail_by_slug_id_with_http_info(slug, property_id)
|
|
194
|
+
p status_code # => 2xx
|
|
195
|
+
p headers # => { ... }
|
|
196
|
+
p data # => Object
|
|
197
|
+
rescue ScrapeBadger::ApiError => e
|
|
198
|
+
puts "Error when calling ApartmentsApi->apartments_get_property_detail_by_slug_id_with_http_info: #{e}"
|
|
199
|
+
end
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Parameters
|
|
203
|
+
|
|
204
|
+
| Name | Type | Description | Notes |
|
|
205
|
+
| ---- | ---- | ----------- | ----- |
|
|
206
|
+
| **slug** | **String** | | |
|
|
207
|
+
| **property_id** | **String** | | |
|
|
208
|
+
|
|
209
|
+
### Return type
|
|
210
|
+
|
|
211
|
+
**Object**
|
|
212
|
+
|
|
213
|
+
### Authorization
|
|
214
|
+
|
|
215
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
216
|
+
|
|
217
|
+
### HTTP request headers
|
|
218
|
+
|
|
219
|
+
- **Content-Type**: Not defined
|
|
220
|
+
- **Accept**: application/json
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
## apartments_get_property_detail_by_url
|
|
224
|
+
|
|
225
|
+
> Object apartments_get_property_detail_by_url(url)
|
|
226
|
+
|
|
227
|
+
Get property detail by URL
|
|
228
|
+
|
|
229
|
+
Get an apartments.com property with full per-unit pricing and availability.
|
|
230
|
+
|
|
231
|
+
### Examples
|
|
232
|
+
|
|
233
|
+
```ruby
|
|
234
|
+
require 'time'
|
|
235
|
+
require 'scrapebadger'
|
|
236
|
+
# setup authorization
|
|
237
|
+
ScrapeBadger.configure do |config|
|
|
238
|
+
# Configure API key authorization: ApiKeyAuth
|
|
239
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
240
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
241
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
api_instance = ScrapeBadger::ApartmentsApi.new
|
|
245
|
+
url = 'url_example' # String | Full apartments.com property URL, e.g. https://www.apartments.com/urbane-kansas-city-mo/wcd6e5k/
|
|
246
|
+
|
|
247
|
+
begin
|
|
248
|
+
# Get property detail by URL
|
|
249
|
+
result = api_instance.apartments_get_property_detail_by_url(url)
|
|
250
|
+
p result
|
|
251
|
+
rescue ScrapeBadger::ApiError => e
|
|
252
|
+
puts "Error when calling ApartmentsApi->apartments_get_property_detail_by_url: #{e}"
|
|
253
|
+
end
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
#### Using the apartments_get_property_detail_by_url_with_http_info variant
|
|
257
|
+
|
|
258
|
+
This returns an Array which contains the response data, status code and headers.
|
|
259
|
+
|
|
260
|
+
> <Array(Object, Integer, Hash)> apartments_get_property_detail_by_url_with_http_info(url)
|
|
261
|
+
|
|
262
|
+
```ruby
|
|
263
|
+
begin
|
|
264
|
+
# Get property detail by URL
|
|
265
|
+
data, status_code, headers = api_instance.apartments_get_property_detail_by_url_with_http_info(url)
|
|
266
|
+
p status_code # => 2xx
|
|
267
|
+
p headers # => { ... }
|
|
268
|
+
p data # => Object
|
|
269
|
+
rescue ScrapeBadger::ApiError => e
|
|
270
|
+
puts "Error when calling ApartmentsApi->apartments_get_property_detail_by_url_with_http_info: #{e}"
|
|
271
|
+
end
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Parameters
|
|
275
|
+
|
|
276
|
+
| Name | Type | Description | Notes |
|
|
277
|
+
| ---- | ---- | ----------- | ----- |
|
|
278
|
+
| **url** | **String** | Full apartments.com property URL, e.g. https://www.apartments.com/urbane-kansas-city-mo/wcd6e5k/ | |
|
|
279
|
+
|
|
280
|
+
### Return type
|
|
281
|
+
|
|
282
|
+
**Object**
|
|
283
|
+
|
|
284
|
+
### Authorization
|
|
285
|
+
|
|
286
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
287
|
+
|
|
288
|
+
### HTTP request headers
|
|
289
|
+
|
|
290
|
+
- **Content-Type**: Not defined
|
|
291
|
+
- **Accept**: application/json
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## apartments_search_rental_listings
|
|
295
|
+
|
|
296
|
+
> Object apartments_search_rental_listings(location, opts)
|
|
297
|
+
|
|
298
|
+
Search rental listings
|
|
299
|
+
|
|
300
|
+
Search apartments.com for rental properties. 40 cards per page.
|
|
301
|
+
|
|
302
|
+
### Examples
|
|
303
|
+
|
|
304
|
+
```ruby
|
|
305
|
+
require 'time'
|
|
306
|
+
require 'scrapebadger'
|
|
307
|
+
# setup authorization
|
|
308
|
+
ScrapeBadger.configure do |config|
|
|
309
|
+
# Configure API key authorization: ApiKeyAuth
|
|
310
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
311
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
312
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
api_instance = ScrapeBadger::ApartmentsApi.new
|
|
316
|
+
location = 'location_example' # String | apartments.com location slug, e.g. 'kansas-city-mo'
|
|
317
|
+
opts = {
|
|
318
|
+
page: 56, # Integer |
|
|
319
|
+
beds: 56, # Integer | 0=studio, 1-4 bedrooms
|
|
320
|
+
min_price: 56, # Integer |
|
|
321
|
+
max_price: 56 # Integer |
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
begin
|
|
325
|
+
# Search rental listings
|
|
326
|
+
result = api_instance.apartments_search_rental_listings(location, opts)
|
|
327
|
+
p result
|
|
328
|
+
rescue ScrapeBadger::ApiError => e
|
|
329
|
+
puts "Error when calling ApartmentsApi->apartments_search_rental_listings: #{e}"
|
|
330
|
+
end
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
#### Using the apartments_search_rental_listings_with_http_info variant
|
|
334
|
+
|
|
335
|
+
This returns an Array which contains the response data, status code and headers.
|
|
336
|
+
|
|
337
|
+
> <Array(Object, Integer, Hash)> apartments_search_rental_listings_with_http_info(location, opts)
|
|
338
|
+
|
|
339
|
+
```ruby
|
|
340
|
+
begin
|
|
341
|
+
# Search rental listings
|
|
342
|
+
data, status_code, headers = api_instance.apartments_search_rental_listings_with_http_info(location, opts)
|
|
343
|
+
p status_code # => 2xx
|
|
344
|
+
p headers # => { ... }
|
|
345
|
+
p data # => Object
|
|
346
|
+
rescue ScrapeBadger::ApiError => e
|
|
347
|
+
puts "Error when calling ApartmentsApi->apartments_search_rental_listings_with_http_info: #{e}"
|
|
348
|
+
end
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### Parameters
|
|
352
|
+
|
|
353
|
+
| Name | Type | Description | Notes |
|
|
354
|
+
| ---- | ---- | ----------- | ----- |
|
|
355
|
+
| **location** | **String** | apartments.com location slug, e.g. 'kansas-city-mo' | |
|
|
356
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
357
|
+
| **beds** | **Integer** | 0=studio, 1-4 bedrooms | [optional] |
|
|
358
|
+
| **min_price** | **Integer** | | [optional] |
|
|
359
|
+
| **max_price** | **Integer** | | [optional] |
|
|
360
|
+
|
|
361
|
+
### Return type
|
|
362
|
+
|
|
363
|
+
**Object**
|
|
364
|
+
|
|
365
|
+
### Authorization
|
|
366
|
+
|
|
367
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
368
|
+
|
|
369
|
+
### HTTP request headers
|
|
370
|
+
|
|
371
|
+
- **Content-Type**: Not defined
|
|
372
|
+
- **Accept**: application/json
|
|
373
|
+
|