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