Skip to content

Commit 2aea6f2

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent de4e605 commit 2aea6f2

6 files changed

Lines changed: 89 additions & 95 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ Class | Method | HTTP request | Description
266266
*DuckDuckGoApi* | [**DuckduckgoVideoSearch**](docs/DuckDuckGoApi.md#duckduckgovideosearch) | **GET** /v1/duckduckgo/videos | Video search
267267
*DuckDuckGoApi* | [**DuckduckgoWebSearch**](docs/DuckDuckGoApi.md#duckduckgowebsearch) | **GET** /v1/duckduckgo/search | Web search
268268
*EBayApi* | [**EbayBrowseACategory**](docs/EBayApi.md#ebaybrowseacategory) | **GET** /v1/ebay/categories/{category_id}/items | Browse a category
269-
*EBayApi* | [**EbayCompletedSoldListingsDeprecated**](docs/EBayApi.md#ebaycompletedsoldlistingsdeprecated) | **GET** /v1/ebay/completed | Completed / sold listings (deprecated)
269+
*EBayApi* | [**EbayCompletedSoldListings**](docs/EBayApi.md#ebaycompletedsoldlistings) | **GET** /v1/ebay/completed | Completed / sold listings
270270
*EBayApi* | [**EbayEbayScraperHealthCheck**](docs/EBayApi.md#ebayebayscraperhealthcheck) | **GET** /v1/ebay/health | eBay scraper health check
271271
*EBayApi* | [**EbayEbayScraperHealthCheckHead**](docs/EBayApi.md#ebayebayscraperhealthcheckhead) | **HEAD** /v1/ebay/health | eBay scraper health check
272272
*EBayApi* | [**EbayGetItemDetail**](docs/EBayApi.md#ebaygetitemdetail) | **GET** /v1/ebay/items/{item_id} | Get item detail

ScrapeBadger.sln

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{9E930633-B42B-442D-A520-D1EFBA148F8E}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}"
66
EndProject
77
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger.Test", "src\ScrapeBadger.Test\ScrapeBadger.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{9E930633-B42B-442D-A520-D1EFBA148F8E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{9E930633-B42B-442D-A520-D1EFBA148F8E}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{9E930633-B42B-442D-A520-D1EFBA148F8E}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{9E930633-B42B-442D-A520-D1EFBA148F8E}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{CE83CBB9-DE29-4DC6-9579-577EE38AC90E}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

api/openapi.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4292,10 +4292,8 @@ paths:
42924292
- eBay
42934293
/v1/ebay/completed:
42944294
get:
4295-
deprecated: true
4296-
description: Deprecated — eBay requires a signed-in account for sold listings.
4297-
Returns 410.
4298-
operationId: ebay_completed_sold_listings_deprecated
4295+
description: Search completed/sold listings — eBay's sold-price history.
4296+
operationId: ebay_completed_sold_listings
42994297
parameters:
43004298
- description: Search keywords
43014299
explode: true
@@ -4307,16 +4305,19 @@ paths:
43074305
title: Query
43084306
type: string
43094307
style: form
4310-
- explode: true
4308+
- description: "Marketplace domain (com, co.uk, de …)"
4309+
explode: true
43114310
in: query
43124311
name: domain
43134312
required: false
43144313
schema:
43154314
default: com
4315+
description: "Marketplace domain (com, co.uk, de …)"
43164316
title: Domain
43174317
type: string
43184318
style: form
4319-
- explode: true
4319+
- description: Restrict to a category id
4320+
explode: true
43204321
in: query
43214322
name: category_id
43224323
required: false
@@ -4335,7 +4336,8 @@ paths:
43354336
title: Page
43364337
type: integer
43374338
style: form
4338-
- explode: true
4339+
- description: "60, 120 or 240"
4340+
explode: true
43394341
in: query
43404342
name: per_page
43414343
required: false
@@ -4397,7 +4399,7 @@ paths:
43974399
description: Validation Error
43984400
security:
43994401
- ApiKeyAuth: []
4400-
summary: Completed / sold listings (deprecated)
4402+
summary: Completed / sold listings
44014403
tags:
44024404
- eBay
44034405
/v1/ebay/health:

docs/EBayApi.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All URIs are relative to *https://scrapebadger.com*
55
| Method | HTTP request | Description |
66
|--------|--------------|-------------|
77
| [**EbayBrowseACategory**](EBayApi.md#ebaybrowseacategory) | **GET** /v1/ebay/categories/{category_id}/items | Browse a category |
8-
| [**EbayCompletedSoldListingsDeprecated**](EBayApi.md#ebaycompletedsoldlistingsdeprecated) | **GET** /v1/ebay/completed | Completed / sold listings (deprecated) |
8+
| [**EbayCompletedSoldListings**](EBayApi.md#ebaycompletedsoldlistings) | **GET** /v1/ebay/completed | Completed / sold listings |
99
| [**EbayEbayScraperHealthCheck**](EBayApi.md#ebayebayscraperhealthcheck) | **GET** /v1/ebay/health | eBay scraper health check |
1010
| [**EbayEbayScraperHealthCheckHead**](EBayApi.md#ebayebayscraperhealthcheckhead) | **HEAD** /v1/ebay/health | eBay scraper health check |
1111
| [**EbayGetItemDetail**](EBayApi.md#ebaygetitemdetail) | **GET** /v1/ebay/items/{item_id} | Get item detail |
@@ -131,13 +131,13 @@ catch (ApiException e)
131131

132132
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
133133

134-
<a id="ebaycompletedsoldlistingsdeprecated"></a>
135-
# **EbayCompletedSoldListingsDeprecated**
136-
> Object EbayCompletedSoldListingsDeprecated (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, decimal? minPrice = null, decimal? maxPrice = null)
134+
<a id="ebaycompletedsoldlistings"></a>
135+
# **EbayCompletedSoldListings**
136+
> Object EbayCompletedSoldListings (string query, string domain = null, string categoryId = null, int? page = null, int? perPage = null, string sortBy = null, string condition = null, decimal? minPrice = null, decimal? maxPrice = null)
137137
138-
Completed / sold listings (deprecated)
138+
Completed / sold listings
139139

140-
Deprecated — eBay requires a signed-in account for sold listings. Returns 410.
140+
Search completed/sold listings — eBay's sold-price history.
141141

142142
### Example
143143
```csharp
@@ -150,7 +150,7 @@ using ScrapeBadger.Model;
150150

151151
namespace Example
152152
{
153-
public class EbayCompletedSoldListingsDeprecatedExample
153+
public class EbayCompletedSoldListingsExample
154154
{
155155
public static void Main()
156156
{
@@ -166,24 +166,24 @@ namespace Example
166166
HttpClientHandler httpClientHandler = new HttpClientHandler();
167167
var apiInstance = new EBayApi(httpClient, config, httpClientHandler);
168168
var query = "query_example"; // string | Search keywords
169-
var domain = "\"com\""; // string | (optional) (default to "com")
170-
var categoryId = "categoryId_example"; // string | (optional)
169+
var domain = "\"com\""; // string | Marketplace domain (com, co.uk, de …) (optional) (default to "com")
170+
var categoryId = "categoryId_example"; // string | Restrict to a category id (optional)
171171
var page = 1; // int? | (optional) (default to 1)
172-
var perPage = 56; // int? | (optional)
172+
var perPage = 56; // int? | 60, 120 or 240 (optional)
173173
var sortBy = "\"best_match\""; // string | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low (optional) (default to "best_match")
174174
var condition = "condition_example"; // string | new|open_box|refurbished|used|for_parts (optional)
175175
var minPrice = 8.14D; // decimal? | (optional)
176176
var maxPrice = 8.14D; // decimal? | (optional)
177177
178178
try
179179
{
180-
// Completed / sold listings (deprecated)
181-
Object result = apiInstance.EbayCompletedSoldListingsDeprecated(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
180+
// Completed / sold listings
181+
Object result = apiInstance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
182182
Debug.WriteLine(result);
183183
}
184184
catch (ApiException e)
185185
{
186-
Debug.Print("Exception when calling EBayApi.EbayCompletedSoldListingsDeprecated: " + e.Message);
186+
Debug.Print("Exception when calling EBayApi.EbayCompletedSoldListings: " + e.Message);
187187
Debug.Print("Status Code: " + e.ErrorCode);
188188
Debug.Print(e.StackTrace);
189189
}
@@ -192,21 +192,21 @@ namespace Example
192192
}
193193
```
194194

195-
#### Using the EbayCompletedSoldListingsDeprecatedWithHttpInfo variant
195+
#### Using the EbayCompletedSoldListingsWithHttpInfo variant
196196
This returns an ApiResponse object which contains the response data, status code and headers.
197197

198198
```csharp
199199
try
200200
{
201-
// Completed / sold listings (deprecated)
202-
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsDeprecatedWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
201+
// Completed / sold listings
202+
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
203203
Debug.Write("Status Code: " + response.StatusCode);
204204
Debug.Write("Response Headers: " + response.Headers);
205205
Debug.Write("Response Body: " + response.Data);
206206
}
207207
catch (ApiException e)
208208
{
209-
Debug.Print("Exception when calling EBayApi.EbayCompletedSoldListingsDeprecatedWithHttpInfo: " + e.Message);
209+
Debug.Print("Exception when calling EBayApi.EbayCompletedSoldListingsWithHttpInfo: " + e.Message);
210210
Debug.Print("Status Code: " + e.ErrorCode);
211211
Debug.Print(e.StackTrace);
212212
}
@@ -217,10 +217,10 @@ catch (ApiException e)
217217
| Name | Type | Description | Notes |
218218
|------|------|-------------|-------|
219219
| **query** | **string** | Search keywords | |
220-
| **domain** | **string** | | [optional] [default to &quot;com&quot;] |
221-
| **categoryId** | **string** | | [optional] |
220+
| **domain** | **string** | Marketplace domain (com, co.uk, de …) | [optional] [default to &quot;com&quot;] |
221+
| **categoryId** | **string** | Restrict to a category id | [optional] |
222222
| **page** | **int?** | | [optional] [default to 1] |
223-
| **perPage** | **int?** | | [optional] |
223+
| **perPage** | **int?** | 60, 120 or 240 | [optional] |
224224
| **sortBy** | **string** | best_match|ending_soonest|newly_listed|price_low_to_high|price_high_to_low | [optional] [default to &quot;best_match&quot;] |
225225
| **condition** | **string** | new|open_box|refurbished|used|for_parts | [optional] |
226226
| **minPrice** | **decimal?** | | [optional] |

src/ScrapeBadger.Test/Api/EBayApiTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public void EbayBrowseACategoryTest()
7272
}
7373

7474
/// <summary>
75-
/// Test EbayCompletedSoldListingsDeprecated
75+
/// Test EbayCompletedSoldListings
7676
/// </summary>
7777
[Fact]
78-
public void EbayCompletedSoldListingsDeprecatedTest()
78+
public void EbayCompletedSoldListingsTest()
7979
{
8080
// TODO uncomment below to test the method and replace null with proper value
8181
//string query = null;
@@ -87,7 +87,7 @@ public void EbayCompletedSoldListingsDeprecatedTest()
8787
//string condition = null;
8888
//decimal? minPrice = null;
8989
//decimal? maxPrice = null;
90-
//var response = instance.EbayCompletedSoldListingsDeprecated(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
90+
//var response = instance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
9191
//Assert.IsType<Object>(response);
9292
}
9393

0 commit comments

Comments
 (0)