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
data/docs/EBayApi.md
ADDED
|
@@ -0,0 +1,1019 @@
|
|
|
1
|
+
# ScrapeBadger::EBayApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://scrapebadger.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**ebay_browse_a_category**](EBayApi.md#ebay_browse_a_category) | **GET** /v1/ebay/categories/{category_id}/items | Browse a category |
|
|
8
|
+
| [**ebay_completed_sold_listings**](EBayApi.md#ebay_completed_sold_listings) | **GET** /v1/ebay/completed | Completed / sold listings |
|
|
9
|
+
| [**ebay_ebay_scraper_health_check**](EBayApi.md#ebay_ebay_scraper_health_check) | **GET** /v1/ebay/health | eBay scraper health check |
|
|
10
|
+
| [**ebay_ebay_scraper_health_check_head**](EBayApi.md#ebay_ebay_scraper_health_check_head) | **HEAD** /v1/ebay/health | eBay scraper health check |
|
|
11
|
+
| [**ebay_get_item_detail**](EBayApi.md#ebay_get_item_detail) | **GET** /v1/ebay/items/{item_id} | Get item detail |
|
|
12
|
+
| [**ebay_get_item_reviews**](EBayApi.md#ebay_get_item_reviews) | **GET** /v1/ebay/items/{item_id}/reviews | Get item reviews |
|
|
13
|
+
| [**ebay_get_seller_feedback**](EBayApi.md#ebay_get_seller_feedback) | **GET** /v1/ebay/sellers/{username}/feedback | Get seller feedback |
|
|
14
|
+
| [**ebay_get_seller_listings**](EBayApi.md#ebay_get_seller_listings) | **GET** /v1/ebay/sellers/{username}/items | Get seller listings |
|
|
15
|
+
| [**ebay_get_seller_profile**](EBayApi.md#ebay_get_seller_profile) | **GET** /v1/ebay/sellers/{username} | Get seller profile |
|
|
16
|
+
| [**ebay_keyword_suggestions**](EBayApi.md#ebay_keyword_suggestions) | **GET** /v1/ebay/autocomplete | Keyword suggestions |
|
|
17
|
+
| [**ebay_list_categories**](EBayApi.md#ebay_list_categories) | **GET** /v1/ebay/categories | List categories |
|
|
18
|
+
| [**ebay_list_markets**](EBayApi.md#ebay_list_markets) | **GET** /v1/ebay/markets | List markets |
|
|
19
|
+
| [**ebay_search_listings**](EBayApi.md#ebay_search_listings) | **GET** /v1/ebay/search | Search listings |
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## ebay_browse_a_category
|
|
23
|
+
|
|
24
|
+
> Object ebay_browse_a_category(category_id, opts)
|
|
25
|
+
|
|
26
|
+
Browse a category
|
|
27
|
+
|
|
28
|
+
List active listings within an eBay category.
|
|
29
|
+
|
|
30
|
+
### Examples
|
|
31
|
+
|
|
32
|
+
```ruby
|
|
33
|
+
require 'time'
|
|
34
|
+
require 'scrapebadger'
|
|
35
|
+
# setup authorization
|
|
36
|
+
ScrapeBadger.configure do |config|
|
|
37
|
+
# Configure API key authorization: ApiKeyAuth
|
|
38
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
39
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
40
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
44
|
+
category_id = 'category_id_example' # String |
|
|
45
|
+
opts = {
|
|
46
|
+
domain: 'domain_example', # String |
|
|
47
|
+
page: 56, # Integer |
|
|
48
|
+
per_page: 56, # Integer |
|
|
49
|
+
sort_by: 'sort_by_example', # String | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low
|
|
50
|
+
min_price: 8.14, # Float |
|
|
51
|
+
max_price: 8.14 # Float |
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
begin
|
|
55
|
+
# Browse a category
|
|
56
|
+
result = api_instance.ebay_browse_a_category(category_id, opts)
|
|
57
|
+
p result
|
|
58
|
+
rescue ScrapeBadger::ApiError => e
|
|
59
|
+
puts "Error when calling EBayApi->ebay_browse_a_category: #{e}"
|
|
60
|
+
end
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Using the ebay_browse_a_category_with_http_info variant
|
|
64
|
+
|
|
65
|
+
This returns an Array which contains the response data, status code and headers.
|
|
66
|
+
|
|
67
|
+
> <Array(Object, Integer, Hash)> ebay_browse_a_category_with_http_info(category_id, opts)
|
|
68
|
+
|
|
69
|
+
```ruby
|
|
70
|
+
begin
|
|
71
|
+
# Browse a category
|
|
72
|
+
data, status_code, headers = api_instance.ebay_browse_a_category_with_http_info(category_id, opts)
|
|
73
|
+
p status_code # => 2xx
|
|
74
|
+
p headers # => { ... }
|
|
75
|
+
p data # => Object
|
|
76
|
+
rescue ScrapeBadger::ApiError => e
|
|
77
|
+
puts "Error when calling EBayApi->ebay_browse_a_category_with_http_info: #{e}"
|
|
78
|
+
end
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Parameters
|
|
82
|
+
|
|
83
|
+
| Name | Type | Description | Notes |
|
|
84
|
+
| ---- | ---- | ----------- | ----- |
|
|
85
|
+
| **category_id** | **String** | | |
|
|
86
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
87
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
88
|
+
| **per_page** | **Integer** | | [optional] |
|
|
89
|
+
| **sort_by** | **String** | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low | [optional][default to 'best_match'] |
|
|
90
|
+
| **min_price** | **Float** | | [optional] |
|
|
91
|
+
| **max_price** | **Float** | | [optional] |
|
|
92
|
+
|
|
93
|
+
### Return type
|
|
94
|
+
|
|
95
|
+
**Object**
|
|
96
|
+
|
|
97
|
+
### Authorization
|
|
98
|
+
|
|
99
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
100
|
+
|
|
101
|
+
### HTTP request headers
|
|
102
|
+
|
|
103
|
+
- **Content-Type**: Not defined
|
|
104
|
+
- **Accept**: application/json
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
## ebay_completed_sold_listings
|
|
108
|
+
|
|
109
|
+
> Object ebay_completed_sold_listings(query, opts)
|
|
110
|
+
|
|
111
|
+
Completed / sold listings
|
|
112
|
+
|
|
113
|
+
Search completed/sold listings — eBay's sold-price history.
|
|
114
|
+
|
|
115
|
+
### Examples
|
|
116
|
+
|
|
117
|
+
```ruby
|
|
118
|
+
require 'time'
|
|
119
|
+
require 'scrapebadger'
|
|
120
|
+
# setup authorization
|
|
121
|
+
ScrapeBadger.configure do |config|
|
|
122
|
+
# Configure API key authorization: ApiKeyAuth
|
|
123
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
124
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
125
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
129
|
+
query = 'query_example' # String | Search keywords
|
|
130
|
+
opts = {
|
|
131
|
+
domain: 'domain_example', # String |
|
|
132
|
+
category_id: 'category_id_example', # String |
|
|
133
|
+
page: 56, # Integer |
|
|
134
|
+
per_page: 56, # Integer |
|
|
135
|
+
sort_by: 'sort_by_example', # String | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low
|
|
136
|
+
condition: 'condition_example', # String | new|open_box|refurbished|used|for_parts
|
|
137
|
+
min_price: 8.14, # Float |
|
|
138
|
+
max_price: 8.14 # Float |
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
begin
|
|
142
|
+
# Completed / sold listings
|
|
143
|
+
result = api_instance.ebay_completed_sold_listings(query, opts)
|
|
144
|
+
p result
|
|
145
|
+
rescue ScrapeBadger::ApiError => e
|
|
146
|
+
puts "Error when calling EBayApi->ebay_completed_sold_listings: #{e}"
|
|
147
|
+
end
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
#### Using the ebay_completed_sold_listings_with_http_info variant
|
|
151
|
+
|
|
152
|
+
This returns an Array which contains the response data, status code and headers.
|
|
153
|
+
|
|
154
|
+
> <Array(Object, Integer, Hash)> ebay_completed_sold_listings_with_http_info(query, opts)
|
|
155
|
+
|
|
156
|
+
```ruby
|
|
157
|
+
begin
|
|
158
|
+
# Completed / sold listings
|
|
159
|
+
data, status_code, headers = api_instance.ebay_completed_sold_listings_with_http_info(query, opts)
|
|
160
|
+
p status_code # => 2xx
|
|
161
|
+
p headers # => { ... }
|
|
162
|
+
p data # => Object
|
|
163
|
+
rescue ScrapeBadger::ApiError => e
|
|
164
|
+
puts "Error when calling EBayApi->ebay_completed_sold_listings_with_http_info: #{e}"
|
|
165
|
+
end
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Parameters
|
|
169
|
+
|
|
170
|
+
| Name | Type | Description | Notes |
|
|
171
|
+
| ---- | ---- | ----------- | ----- |
|
|
172
|
+
| **query** | **String** | Search keywords | |
|
|
173
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
174
|
+
| **category_id** | **String** | | [optional] |
|
|
175
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
176
|
+
| **per_page** | **Integer** | | [optional] |
|
|
177
|
+
| **sort_by** | **String** | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low | [optional][default to 'best_match'] |
|
|
178
|
+
| **condition** | **String** | new|open_box|refurbished|used|for_parts | [optional] |
|
|
179
|
+
| **min_price** | **Float** | | [optional] |
|
|
180
|
+
| **max_price** | **Float** | | [optional] |
|
|
181
|
+
|
|
182
|
+
### Return type
|
|
183
|
+
|
|
184
|
+
**Object**
|
|
185
|
+
|
|
186
|
+
### Authorization
|
|
187
|
+
|
|
188
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
189
|
+
|
|
190
|
+
### HTTP request headers
|
|
191
|
+
|
|
192
|
+
- **Content-Type**: Not defined
|
|
193
|
+
- **Accept**: application/json
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
## ebay_ebay_scraper_health_check
|
|
197
|
+
|
|
198
|
+
> Object ebay_ebay_scraper_health_check
|
|
199
|
+
|
|
200
|
+
eBay scraper health check
|
|
201
|
+
|
|
202
|
+
Check health of the eBay scraper service (accepts HEAD for UptimeRobot).
|
|
203
|
+
|
|
204
|
+
### Examples
|
|
205
|
+
|
|
206
|
+
```ruby
|
|
207
|
+
require 'time'
|
|
208
|
+
require 'scrapebadger'
|
|
209
|
+
# setup authorization
|
|
210
|
+
ScrapeBadger.configure do |config|
|
|
211
|
+
# Configure API key authorization: ApiKeyAuth
|
|
212
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
213
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
214
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
218
|
+
|
|
219
|
+
begin
|
|
220
|
+
# eBay scraper health check
|
|
221
|
+
result = api_instance.ebay_ebay_scraper_health_check
|
|
222
|
+
p result
|
|
223
|
+
rescue ScrapeBadger::ApiError => e
|
|
224
|
+
puts "Error when calling EBayApi->ebay_ebay_scraper_health_check: #{e}"
|
|
225
|
+
end
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
#### Using the ebay_ebay_scraper_health_check_with_http_info variant
|
|
229
|
+
|
|
230
|
+
This returns an Array which contains the response data, status code and headers.
|
|
231
|
+
|
|
232
|
+
> <Array(Object, Integer, Hash)> ebay_ebay_scraper_health_check_with_http_info
|
|
233
|
+
|
|
234
|
+
```ruby
|
|
235
|
+
begin
|
|
236
|
+
# eBay scraper health check
|
|
237
|
+
data, status_code, headers = api_instance.ebay_ebay_scraper_health_check_with_http_info
|
|
238
|
+
p status_code # => 2xx
|
|
239
|
+
p headers # => { ... }
|
|
240
|
+
p data # => Object
|
|
241
|
+
rescue ScrapeBadger::ApiError => e
|
|
242
|
+
puts "Error when calling EBayApi->ebay_ebay_scraper_health_check_with_http_info: #{e}"
|
|
243
|
+
end
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
This endpoint does not need any parameter.
|
|
249
|
+
|
|
250
|
+
### Return type
|
|
251
|
+
|
|
252
|
+
**Object**
|
|
253
|
+
|
|
254
|
+
### Authorization
|
|
255
|
+
|
|
256
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
257
|
+
|
|
258
|
+
### HTTP request headers
|
|
259
|
+
|
|
260
|
+
- **Content-Type**: Not defined
|
|
261
|
+
- **Accept**: application/json
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
## ebay_ebay_scraper_health_check_head
|
|
265
|
+
|
|
266
|
+
> Object ebay_ebay_scraper_health_check_head
|
|
267
|
+
|
|
268
|
+
eBay scraper health check
|
|
269
|
+
|
|
270
|
+
Check health of the eBay scraper service (accepts HEAD for UptimeRobot).
|
|
271
|
+
|
|
272
|
+
### Examples
|
|
273
|
+
|
|
274
|
+
```ruby
|
|
275
|
+
require 'time'
|
|
276
|
+
require 'scrapebadger'
|
|
277
|
+
# setup authorization
|
|
278
|
+
ScrapeBadger.configure do |config|
|
|
279
|
+
# Configure API key authorization: ApiKeyAuth
|
|
280
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
281
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
282
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
286
|
+
|
|
287
|
+
begin
|
|
288
|
+
# eBay scraper health check
|
|
289
|
+
result = api_instance.ebay_ebay_scraper_health_check_head
|
|
290
|
+
p result
|
|
291
|
+
rescue ScrapeBadger::ApiError => e
|
|
292
|
+
puts "Error when calling EBayApi->ebay_ebay_scraper_health_check_head: #{e}"
|
|
293
|
+
end
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
#### Using the ebay_ebay_scraper_health_check_head_with_http_info variant
|
|
297
|
+
|
|
298
|
+
This returns an Array which contains the response data, status code and headers.
|
|
299
|
+
|
|
300
|
+
> <Array(Object, Integer, Hash)> ebay_ebay_scraper_health_check_head_with_http_info
|
|
301
|
+
|
|
302
|
+
```ruby
|
|
303
|
+
begin
|
|
304
|
+
# eBay scraper health check
|
|
305
|
+
data, status_code, headers = api_instance.ebay_ebay_scraper_health_check_head_with_http_info
|
|
306
|
+
p status_code # => 2xx
|
|
307
|
+
p headers # => { ... }
|
|
308
|
+
p data # => Object
|
|
309
|
+
rescue ScrapeBadger::ApiError => e
|
|
310
|
+
puts "Error when calling EBayApi->ebay_ebay_scraper_health_check_head_with_http_info: #{e}"
|
|
311
|
+
end
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
### Parameters
|
|
315
|
+
|
|
316
|
+
This endpoint does not need any parameter.
|
|
317
|
+
|
|
318
|
+
### Return type
|
|
319
|
+
|
|
320
|
+
**Object**
|
|
321
|
+
|
|
322
|
+
### Authorization
|
|
323
|
+
|
|
324
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
325
|
+
|
|
326
|
+
### HTTP request headers
|
|
327
|
+
|
|
328
|
+
- **Content-Type**: Not defined
|
|
329
|
+
- **Accept**: application/json
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
## ebay_get_item_detail
|
|
333
|
+
|
|
334
|
+
> Object ebay_get_item_detail(item_id, opts)
|
|
335
|
+
|
|
336
|
+
Get item detail
|
|
337
|
+
|
|
338
|
+
Get a single eBay listing's full detail.
|
|
339
|
+
|
|
340
|
+
### Examples
|
|
341
|
+
|
|
342
|
+
```ruby
|
|
343
|
+
require 'time'
|
|
344
|
+
require 'scrapebadger'
|
|
345
|
+
# setup authorization
|
|
346
|
+
ScrapeBadger.configure do |config|
|
|
347
|
+
# Configure API key authorization: ApiKeyAuth
|
|
348
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
349
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
350
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
354
|
+
item_id = 'item_id_example' # String |
|
|
355
|
+
opts = {
|
|
356
|
+
domain: 'domain_example' # String |
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
begin
|
|
360
|
+
# Get item detail
|
|
361
|
+
result = api_instance.ebay_get_item_detail(item_id, opts)
|
|
362
|
+
p result
|
|
363
|
+
rescue ScrapeBadger::ApiError => e
|
|
364
|
+
puts "Error when calling EBayApi->ebay_get_item_detail: #{e}"
|
|
365
|
+
end
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
#### Using the ebay_get_item_detail_with_http_info variant
|
|
369
|
+
|
|
370
|
+
This returns an Array which contains the response data, status code and headers.
|
|
371
|
+
|
|
372
|
+
> <Array(Object, Integer, Hash)> ebay_get_item_detail_with_http_info(item_id, opts)
|
|
373
|
+
|
|
374
|
+
```ruby
|
|
375
|
+
begin
|
|
376
|
+
# Get item detail
|
|
377
|
+
data, status_code, headers = api_instance.ebay_get_item_detail_with_http_info(item_id, opts)
|
|
378
|
+
p status_code # => 2xx
|
|
379
|
+
p headers # => { ... }
|
|
380
|
+
p data # => Object
|
|
381
|
+
rescue ScrapeBadger::ApiError => e
|
|
382
|
+
puts "Error when calling EBayApi->ebay_get_item_detail_with_http_info: #{e}"
|
|
383
|
+
end
|
|
384
|
+
```
|
|
385
|
+
|
|
386
|
+
### Parameters
|
|
387
|
+
|
|
388
|
+
| Name | Type | Description | Notes |
|
|
389
|
+
| ---- | ---- | ----------- | ----- |
|
|
390
|
+
| **item_id** | **String** | | |
|
|
391
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
392
|
+
|
|
393
|
+
### Return type
|
|
394
|
+
|
|
395
|
+
**Object**
|
|
396
|
+
|
|
397
|
+
### Authorization
|
|
398
|
+
|
|
399
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
400
|
+
|
|
401
|
+
### HTTP request headers
|
|
402
|
+
|
|
403
|
+
- **Content-Type**: Not defined
|
|
404
|
+
- **Accept**: application/json
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
## ebay_get_item_reviews
|
|
408
|
+
|
|
409
|
+
> Object ebay_get_item_reviews(item_id, opts)
|
|
410
|
+
|
|
411
|
+
Get item reviews
|
|
412
|
+
|
|
413
|
+
Get catalog product reviews shown on an eBay listing.
|
|
414
|
+
|
|
415
|
+
### Examples
|
|
416
|
+
|
|
417
|
+
```ruby
|
|
418
|
+
require 'time'
|
|
419
|
+
require 'scrapebadger'
|
|
420
|
+
# setup authorization
|
|
421
|
+
ScrapeBadger.configure do |config|
|
|
422
|
+
# Configure API key authorization: ApiKeyAuth
|
|
423
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
424
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
425
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
429
|
+
item_id = 'item_id_example' # String |
|
|
430
|
+
opts = {
|
|
431
|
+
domain: 'domain_example', # String |
|
|
432
|
+
page: 56 # Integer |
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
begin
|
|
436
|
+
# Get item reviews
|
|
437
|
+
result = api_instance.ebay_get_item_reviews(item_id, opts)
|
|
438
|
+
p result
|
|
439
|
+
rescue ScrapeBadger::ApiError => e
|
|
440
|
+
puts "Error when calling EBayApi->ebay_get_item_reviews: #{e}"
|
|
441
|
+
end
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
#### Using the ebay_get_item_reviews_with_http_info variant
|
|
445
|
+
|
|
446
|
+
This returns an Array which contains the response data, status code and headers.
|
|
447
|
+
|
|
448
|
+
> <Array(Object, Integer, Hash)> ebay_get_item_reviews_with_http_info(item_id, opts)
|
|
449
|
+
|
|
450
|
+
```ruby
|
|
451
|
+
begin
|
|
452
|
+
# Get item reviews
|
|
453
|
+
data, status_code, headers = api_instance.ebay_get_item_reviews_with_http_info(item_id, opts)
|
|
454
|
+
p status_code # => 2xx
|
|
455
|
+
p headers # => { ... }
|
|
456
|
+
p data # => Object
|
|
457
|
+
rescue ScrapeBadger::ApiError => e
|
|
458
|
+
puts "Error when calling EBayApi->ebay_get_item_reviews_with_http_info: #{e}"
|
|
459
|
+
end
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
### Parameters
|
|
463
|
+
|
|
464
|
+
| Name | Type | Description | Notes |
|
|
465
|
+
| ---- | ---- | ----------- | ----- |
|
|
466
|
+
| **item_id** | **String** | | |
|
|
467
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
468
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
469
|
+
|
|
470
|
+
### Return type
|
|
471
|
+
|
|
472
|
+
**Object**
|
|
473
|
+
|
|
474
|
+
### Authorization
|
|
475
|
+
|
|
476
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
477
|
+
|
|
478
|
+
### HTTP request headers
|
|
479
|
+
|
|
480
|
+
- **Content-Type**: Not defined
|
|
481
|
+
- **Accept**: application/json
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
## ebay_get_seller_feedback
|
|
485
|
+
|
|
486
|
+
> Object ebay_get_seller_feedback(username, opts)
|
|
487
|
+
|
|
488
|
+
Get seller feedback
|
|
489
|
+
|
|
490
|
+
Get a seller's recent feedback comments.
|
|
491
|
+
|
|
492
|
+
### Examples
|
|
493
|
+
|
|
494
|
+
```ruby
|
|
495
|
+
require 'time'
|
|
496
|
+
require 'scrapebadger'
|
|
497
|
+
# setup authorization
|
|
498
|
+
ScrapeBadger.configure do |config|
|
|
499
|
+
# Configure API key authorization: ApiKeyAuth
|
|
500
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
501
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
502
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
503
|
+
end
|
|
504
|
+
|
|
505
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
506
|
+
username = 'username_example' # String |
|
|
507
|
+
opts = {
|
|
508
|
+
domain: 'domain_example', # String |
|
|
509
|
+
page: 56 # Integer |
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
begin
|
|
513
|
+
# Get seller feedback
|
|
514
|
+
result = api_instance.ebay_get_seller_feedback(username, opts)
|
|
515
|
+
p result
|
|
516
|
+
rescue ScrapeBadger::ApiError => e
|
|
517
|
+
puts "Error when calling EBayApi->ebay_get_seller_feedback: #{e}"
|
|
518
|
+
end
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
#### Using the ebay_get_seller_feedback_with_http_info variant
|
|
522
|
+
|
|
523
|
+
This returns an Array which contains the response data, status code and headers.
|
|
524
|
+
|
|
525
|
+
> <Array(Object, Integer, Hash)> ebay_get_seller_feedback_with_http_info(username, opts)
|
|
526
|
+
|
|
527
|
+
```ruby
|
|
528
|
+
begin
|
|
529
|
+
# Get seller feedback
|
|
530
|
+
data, status_code, headers = api_instance.ebay_get_seller_feedback_with_http_info(username, opts)
|
|
531
|
+
p status_code # => 2xx
|
|
532
|
+
p headers # => { ... }
|
|
533
|
+
p data # => Object
|
|
534
|
+
rescue ScrapeBadger::ApiError => e
|
|
535
|
+
puts "Error when calling EBayApi->ebay_get_seller_feedback_with_http_info: #{e}"
|
|
536
|
+
end
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
### Parameters
|
|
540
|
+
|
|
541
|
+
| Name | Type | Description | Notes |
|
|
542
|
+
| ---- | ---- | ----------- | ----- |
|
|
543
|
+
| **username** | **String** | | |
|
|
544
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
545
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
546
|
+
|
|
547
|
+
### Return type
|
|
548
|
+
|
|
549
|
+
**Object**
|
|
550
|
+
|
|
551
|
+
### Authorization
|
|
552
|
+
|
|
553
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
554
|
+
|
|
555
|
+
### HTTP request headers
|
|
556
|
+
|
|
557
|
+
- **Content-Type**: Not defined
|
|
558
|
+
- **Accept**: application/json
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
## ebay_get_seller_listings
|
|
562
|
+
|
|
563
|
+
> Object ebay_get_seller_listings(username, opts)
|
|
564
|
+
|
|
565
|
+
Get seller listings
|
|
566
|
+
|
|
567
|
+
List the active listings of a single eBay seller.
|
|
568
|
+
|
|
569
|
+
### Examples
|
|
570
|
+
|
|
571
|
+
```ruby
|
|
572
|
+
require 'time'
|
|
573
|
+
require 'scrapebadger'
|
|
574
|
+
# setup authorization
|
|
575
|
+
ScrapeBadger.configure do |config|
|
|
576
|
+
# Configure API key authorization: ApiKeyAuth
|
|
577
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
578
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
579
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
580
|
+
end
|
|
581
|
+
|
|
582
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
583
|
+
username = 'username_example' # String |
|
|
584
|
+
opts = {
|
|
585
|
+
domain: 'domain_example', # String |
|
|
586
|
+
query: 'query_example', # String |
|
|
587
|
+
page: 56, # Integer |
|
|
588
|
+
per_page: 56 # Integer |
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
begin
|
|
592
|
+
# Get seller listings
|
|
593
|
+
result = api_instance.ebay_get_seller_listings(username, opts)
|
|
594
|
+
p result
|
|
595
|
+
rescue ScrapeBadger::ApiError => e
|
|
596
|
+
puts "Error when calling EBayApi->ebay_get_seller_listings: #{e}"
|
|
597
|
+
end
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
#### Using the ebay_get_seller_listings_with_http_info variant
|
|
601
|
+
|
|
602
|
+
This returns an Array which contains the response data, status code and headers.
|
|
603
|
+
|
|
604
|
+
> <Array(Object, Integer, Hash)> ebay_get_seller_listings_with_http_info(username, opts)
|
|
605
|
+
|
|
606
|
+
```ruby
|
|
607
|
+
begin
|
|
608
|
+
# Get seller listings
|
|
609
|
+
data, status_code, headers = api_instance.ebay_get_seller_listings_with_http_info(username, opts)
|
|
610
|
+
p status_code # => 2xx
|
|
611
|
+
p headers # => { ... }
|
|
612
|
+
p data # => Object
|
|
613
|
+
rescue ScrapeBadger::ApiError => e
|
|
614
|
+
puts "Error when calling EBayApi->ebay_get_seller_listings_with_http_info: #{e}"
|
|
615
|
+
end
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
### Parameters
|
|
619
|
+
|
|
620
|
+
| Name | Type | Description | Notes |
|
|
621
|
+
| ---- | ---- | ----------- | ----- |
|
|
622
|
+
| **username** | **String** | | |
|
|
623
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
624
|
+
| **query** | **String** | | [optional] |
|
|
625
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
626
|
+
| **per_page** | **Integer** | | [optional] |
|
|
627
|
+
|
|
628
|
+
### Return type
|
|
629
|
+
|
|
630
|
+
**Object**
|
|
631
|
+
|
|
632
|
+
### Authorization
|
|
633
|
+
|
|
634
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
635
|
+
|
|
636
|
+
### HTTP request headers
|
|
637
|
+
|
|
638
|
+
- **Content-Type**: Not defined
|
|
639
|
+
- **Accept**: application/json
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
## ebay_get_seller_profile
|
|
643
|
+
|
|
644
|
+
> Object ebay_get_seller_profile(username, opts)
|
|
645
|
+
|
|
646
|
+
Get seller profile
|
|
647
|
+
|
|
648
|
+
Get an eBay seller's public profile.
|
|
649
|
+
|
|
650
|
+
### Examples
|
|
651
|
+
|
|
652
|
+
```ruby
|
|
653
|
+
require 'time'
|
|
654
|
+
require 'scrapebadger'
|
|
655
|
+
# setup authorization
|
|
656
|
+
ScrapeBadger.configure do |config|
|
|
657
|
+
# Configure API key authorization: ApiKeyAuth
|
|
658
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
659
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
660
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
661
|
+
end
|
|
662
|
+
|
|
663
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
664
|
+
username = 'username_example' # String |
|
|
665
|
+
opts = {
|
|
666
|
+
domain: 'domain_example' # String |
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
begin
|
|
670
|
+
# Get seller profile
|
|
671
|
+
result = api_instance.ebay_get_seller_profile(username, opts)
|
|
672
|
+
p result
|
|
673
|
+
rescue ScrapeBadger::ApiError => e
|
|
674
|
+
puts "Error when calling EBayApi->ebay_get_seller_profile: #{e}"
|
|
675
|
+
end
|
|
676
|
+
```
|
|
677
|
+
|
|
678
|
+
#### Using the ebay_get_seller_profile_with_http_info variant
|
|
679
|
+
|
|
680
|
+
This returns an Array which contains the response data, status code and headers.
|
|
681
|
+
|
|
682
|
+
> <Array(Object, Integer, Hash)> ebay_get_seller_profile_with_http_info(username, opts)
|
|
683
|
+
|
|
684
|
+
```ruby
|
|
685
|
+
begin
|
|
686
|
+
# Get seller profile
|
|
687
|
+
data, status_code, headers = api_instance.ebay_get_seller_profile_with_http_info(username, opts)
|
|
688
|
+
p status_code # => 2xx
|
|
689
|
+
p headers # => { ... }
|
|
690
|
+
p data # => Object
|
|
691
|
+
rescue ScrapeBadger::ApiError => e
|
|
692
|
+
puts "Error when calling EBayApi->ebay_get_seller_profile_with_http_info: #{e}"
|
|
693
|
+
end
|
|
694
|
+
```
|
|
695
|
+
|
|
696
|
+
### Parameters
|
|
697
|
+
|
|
698
|
+
| Name | Type | Description | Notes |
|
|
699
|
+
| ---- | ---- | ----------- | ----- |
|
|
700
|
+
| **username** | **String** | | |
|
|
701
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
702
|
+
|
|
703
|
+
### Return type
|
|
704
|
+
|
|
705
|
+
**Object**
|
|
706
|
+
|
|
707
|
+
### Authorization
|
|
708
|
+
|
|
709
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
710
|
+
|
|
711
|
+
### HTTP request headers
|
|
712
|
+
|
|
713
|
+
- **Content-Type**: Not defined
|
|
714
|
+
- **Accept**: application/json
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
## ebay_keyword_suggestions
|
|
718
|
+
|
|
719
|
+
> Object ebay_keyword_suggestions(query, opts)
|
|
720
|
+
|
|
721
|
+
Keyword suggestions
|
|
722
|
+
|
|
723
|
+
Return eBay keyword autocomplete suggestions.
|
|
724
|
+
|
|
725
|
+
### Examples
|
|
726
|
+
|
|
727
|
+
```ruby
|
|
728
|
+
require 'time'
|
|
729
|
+
require 'scrapebadger'
|
|
730
|
+
# setup authorization
|
|
731
|
+
ScrapeBadger.configure do |config|
|
|
732
|
+
# Configure API key authorization: ApiKeyAuth
|
|
733
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
734
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
735
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
739
|
+
query = 'query_example' # String | Partial query prefix
|
|
740
|
+
opts = {
|
|
741
|
+
domain: 'domain_example' # String |
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
begin
|
|
745
|
+
# Keyword suggestions
|
|
746
|
+
result = api_instance.ebay_keyword_suggestions(query, opts)
|
|
747
|
+
p result
|
|
748
|
+
rescue ScrapeBadger::ApiError => e
|
|
749
|
+
puts "Error when calling EBayApi->ebay_keyword_suggestions: #{e}"
|
|
750
|
+
end
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
#### Using the ebay_keyword_suggestions_with_http_info variant
|
|
754
|
+
|
|
755
|
+
This returns an Array which contains the response data, status code and headers.
|
|
756
|
+
|
|
757
|
+
> <Array(Object, Integer, Hash)> ebay_keyword_suggestions_with_http_info(query, opts)
|
|
758
|
+
|
|
759
|
+
```ruby
|
|
760
|
+
begin
|
|
761
|
+
# Keyword suggestions
|
|
762
|
+
data, status_code, headers = api_instance.ebay_keyword_suggestions_with_http_info(query, opts)
|
|
763
|
+
p status_code # => 2xx
|
|
764
|
+
p headers # => { ... }
|
|
765
|
+
p data # => Object
|
|
766
|
+
rescue ScrapeBadger::ApiError => e
|
|
767
|
+
puts "Error when calling EBayApi->ebay_keyword_suggestions_with_http_info: #{e}"
|
|
768
|
+
end
|
|
769
|
+
```
|
|
770
|
+
|
|
771
|
+
### Parameters
|
|
772
|
+
|
|
773
|
+
| Name | Type | Description | Notes |
|
|
774
|
+
| ---- | ---- | ----------- | ----- |
|
|
775
|
+
| **query** | **String** | Partial query prefix | |
|
|
776
|
+
| **domain** | **String** | | [optional][default to 'com'] |
|
|
777
|
+
|
|
778
|
+
### Return type
|
|
779
|
+
|
|
780
|
+
**Object**
|
|
781
|
+
|
|
782
|
+
### Authorization
|
|
783
|
+
|
|
784
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
785
|
+
|
|
786
|
+
### HTTP request headers
|
|
787
|
+
|
|
788
|
+
- **Content-Type**: Not defined
|
|
789
|
+
- **Accept**: application/json
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
## ebay_list_categories
|
|
793
|
+
|
|
794
|
+
> Object ebay_list_categories
|
|
795
|
+
|
|
796
|
+
List categories
|
|
797
|
+
|
|
798
|
+
List eBay's top-level category ids.
|
|
799
|
+
|
|
800
|
+
### Examples
|
|
801
|
+
|
|
802
|
+
```ruby
|
|
803
|
+
require 'time'
|
|
804
|
+
require 'scrapebadger'
|
|
805
|
+
# setup authorization
|
|
806
|
+
ScrapeBadger.configure do |config|
|
|
807
|
+
# Configure API key authorization: ApiKeyAuth
|
|
808
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
809
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
810
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
811
|
+
end
|
|
812
|
+
|
|
813
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
814
|
+
|
|
815
|
+
begin
|
|
816
|
+
# List categories
|
|
817
|
+
result = api_instance.ebay_list_categories
|
|
818
|
+
p result
|
|
819
|
+
rescue ScrapeBadger::ApiError => e
|
|
820
|
+
puts "Error when calling EBayApi->ebay_list_categories: #{e}"
|
|
821
|
+
end
|
|
822
|
+
```
|
|
823
|
+
|
|
824
|
+
#### Using the ebay_list_categories_with_http_info variant
|
|
825
|
+
|
|
826
|
+
This returns an Array which contains the response data, status code and headers.
|
|
827
|
+
|
|
828
|
+
> <Array(Object, Integer, Hash)> ebay_list_categories_with_http_info
|
|
829
|
+
|
|
830
|
+
```ruby
|
|
831
|
+
begin
|
|
832
|
+
# List categories
|
|
833
|
+
data, status_code, headers = api_instance.ebay_list_categories_with_http_info
|
|
834
|
+
p status_code # => 2xx
|
|
835
|
+
p headers # => { ... }
|
|
836
|
+
p data # => Object
|
|
837
|
+
rescue ScrapeBadger::ApiError => e
|
|
838
|
+
puts "Error when calling EBayApi->ebay_list_categories_with_http_info: #{e}"
|
|
839
|
+
end
|
|
840
|
+
```
|
|
841
|
+
|
|
842
|
+
### Parameters
|
|
843
|
+
|
|
844
|
+
This endpoint does not need any parameter.
|
|
845
|
+
|
|
846
|
+
### Return type
|
|
847
|
+
|
|
848
|
+
**Object**
|
|
849
|
+
|
|
850
|
+
### Authorization
|
|
851
|
+
|
|
852
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
853
|
+
|
|
854
|
+
### HTTP request headers
|
|
855
|
+
|
|
856
|
+
- **Content-Type**: Not defined
|
|
857
|
+
- **Accept**: application/json
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
## ebay_list_markets
|
|
861
|
+
|
|
862
|
+
> Object ebay_list_markets
|
|
863
|
+
|
|
864
|
+
List markets
|
|
865
|
+
|
|
866
|
+
List all supported eBay marketplaces.
|
|
867
|
+
|
|
868
|
+
### Examples
|
|
869
|
+
|
|
870
|
+
```ruby
|
|
871
|
+
require 'time'
|
|
872
|
+
require 'scrapebadger'
|
|
873
|
+
# setup authorization
|
|
874
|
+
ScrapeBadger.configure do |config|
|
|
875
|
+
# Configure API key authorization: ApiKeyAuth
|
|
876
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
877
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
878
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
882
|
+
|
|
883
|
+
begin
|
|
884
|
+
# List markets
|
|
885
|
+
result = api_instance.ebay_list_markets
|
|
886
|
+
p result
|
|
887
|
+
rescue ScrapeBadger::ApiError => e
|
|
888
|
+
puts "Error when calling EBayApi->ebay_list_markets: #{e}"
|
|
889
|
+
end
|
|
890
|
+
```
|
|
891
|
+
|
|
892
|
+
#### Using the ebay_list_markets_with_http_info variant
|
|
893
|
+
|
|
894
|
+
This returns an Array which contains the response data, status code and headers.
|
|
895
|
+
|
|
896
|
+
> <Array(Object, Integer, Hash)> ebay_list_markets_with_http_info
|
|
897
|
+
|
|
898
|
+
```ruby
|
|
899
|
+
begin
|
|
900
|
+
# List markets
|
|
901
|
+
data, status_code, headers = api_instance.ebay_list_markets_with_http_info
|
|
902
|
+
p status_code # => 2xx
|
|
903
|
+
p headers # => { ... }
|
|
904
|
+
p data # => Object
|
|
905
|
+
rescue ScrapeBadger::ApiError => e
|
|
906
|
+
puts "Error when calling EBayApi->ebay_list_markets_with_http_info: #{e}"
|
|
907
|
+
end
|
|
908
|
+
```
|
|
909
|
+
|
|
910
|
+
### Parameters
|
|
911
|
+
|
|
912
|
+
This endpoint does not need any parameter.
|
|
913
|
+
|
|
914
|
+
### Return type
|
|
915
|
+
|
|
916
|
+
**Object**
|
|
917
|
+
|
|
918
|
+
### Authorization
|
|
919
|
+
|
|
920
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
921
|
+
|
|
922
|
+
### HTTP request headers
|
|
923
|
+
|
|
924
|
+
- **Content-Type**: Not defined
|
|
925
|
+
- **Accept**: application/json
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
## ebay_search_listings
|
|
929
|
+
|
|
930
|
+
> Object ebay_search_listings(query, opts)
|
|
931
|
+
|
|
932
|
+
Search listings
|
|
933
|
+
|
|
934
|
+
Search an eBay marketplace for active listings.
|
|
935
|
+
|
|
936
|
+
### Examples
|
|
937
|
+
|
|
938
|
+
```ruby
|
|
939
|
+
require 'time'
|
|
940
|
+
require 'scrapebadger'
|
|
941
|
+
# setup authorization
|
|
942
|
+
ScrapeBadger.configure do |config|
|
|
943
|
+
# Configure API key authorization: ApiKeyAuth
|
|
944
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
945
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
946
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
api_instance = ScrapeBadger::EBayApi.new
|
|
950
|
+
query = 'query_example' # String | Search keywords
|
|
951
|
+
opts = {
|
|
952
|
+
domain: 'domain_example', # String | Marketplace domain (com, co.uk, de …)
|
|
953
|
+
category_id: 'category_id_example', # String | Restrict to a category id
|
|
954
|
+
page: 56, # Integer |
|
|
955
|
+
per_page: 56, # Integer | 60, 120 or 240
|
|
956
|
+
sort_by: 'sort_by_example', # String | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low
|
|
957
|
+
condition: 'condition_example', # String | new|open_box|refurbished|used|for_parts
|
|
958
|
+
buying_format: 'buying_format_example', # String | auction|buy_it_now|best_offer
|
|
959
|
+
min_price: 8.14, # Float |
|
|
960
|
+
max_price: 8.14, # Float |
|
|
961
|
+
free_shipping: true # Boolean |
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
begin
|
|
965
|
+
# Search listings
|
|
966
|
+
result = api_instance.ebay_search_listings(query, opts)
|
|
967
|
+
p result
|
|
968
|
+
rescue ScrapeBadger::ApiError => e
|
|
969
|
+
puts "Error when calling EBayApi->ebay_search_listings: #{e}"
|
|
970
|
+
end
|
|
971
|
+
```
|
|
972
|
+
|
|
973
|
+
#### Using the ebay_search_listings_with_http_info variant
|
|
974
|
+
|
|
975
|
+
This returns an Array which contains the response data, status code and headers.
|
|
976
|
+
|
|
977
|
+
> <Array(Object, Integer, Hash)> ebay_search_listings_with_http_info(query, opts)
|
|
978
|
+
|
|
979
|
+
```ruby
|
|
980
|
+
begin
|
|
981
|
+
# Search listings
|
|
982
|
+
data, status_code, headers = api_instance.ebay_search_listings_with_http_info(query, opts)
|
|
983
|
+
p status_code # => 2xx
|
|
984
|
+
p headers # => { ... }
|
|
985
|
+
p data # => Object
|
|
986
|
+
rescue ScrapeBadger::ApiError => e
|
|
987
|
+
puts "Error when calling EBayApi->ebay_search_listings_with_http_info: #{e}"
|
|
988
|
+
end
|
|
989
|
+
```
|
|
990
|
+
|
|
991
|
+
### Parameters
|
|
992
|
+
|
|
993
|
+
| Name | Type | Description | Notes |
|
|
994
|
+
| ---- | ---- | ----------- | ----- |
|
|
995
|
+
| **query** | **String** | Search keywords | |
|
|
996
|
+
| **domain** | **String** | Marketplace domain (com, co.uk, de …) | [optional][default to 'com'] |
|
|
997
|
+
| **category_id** | **String** | Restrict to a category id | [optional] |
|
|
998
|
+
| **page** | **Integer** | | [optional][default to 1] |
|
|
999
|
+
| **per_page** | **Integer** | 60, 120 or 240 | [optional] |
|
|
1000
|
+
| **sort_by** | **String** | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low | [optional][default to 'best_match'] |
|
|
1001
|
+
| **condition** | **String** | new|open_box|refurbished|used|for_parts | [optional] |
|
|
1002
|
+
| **buying_format** | **String** | auction|buy_it_now|best_offer | [optional] |
|
|
1003
|
+
| **min_price** | **Float** | | [optional] |
|
|
1004
|
+
| **max_price** | **Float** | | [optional] |
|
|
1005
|
+
| **free_shipping** | **Boolean** | | [optional][default to false] |
|
|
1006
|
+
|
|
1007
|
+
### Return type
|
|
1008
|
+
|
|
1009
|
+
**Object**
|
|
1010
|
+
|
|
1011
|
+
### Authorization
|
|
1012
|
+
|
|
1013
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1014
|
+
|
|
1015
|
+
### HTTP request headers
|
|
1016
|
+
|
|
1017
|
+
- **Content-Type**: Not defined
|
|
1018
|
+
- **Accept**: application/json
|
|
1019
|
+
|