Skip to content

Commit de4e605

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

6 files changed

Lines changed: 62 additions & 52 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* | [**EbayCompletedSoldListings**](docs/EBayApi.md#ebaycompletedsoldlistings) | **GET** /v1/ebay/completed | Completed / sold listings
269+
*EBayApi* | [**EbayCompletedSoldListingsDeprecated**](docs/EBayApi.md#ebaycompletedsoldlistingsdeprecated) | **GET** /v1/ebay/completed | Completed / sold listings (deprecated)
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", "{B09745A4-F2D6-415B-83A6-DE0BD0D76E49}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{9E930633-B42B-442D-A520-D1EFBA148F8E}"
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-
{B09745A4-F2D6-415B-83A6-DE0BD0D76E49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{B09745A4-F2D6-415B-83A6-DE0BD0D76E49}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{B09745A4-F2D6-415B-83A6-DE0BD0D76E49}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{B09745A4-F2D6-415B-83A6-DE0BD0D76E49}.Release|Any CPU.Build.0 = Release|Any CPU
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
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: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4292,8 +4292,10 @@ paths:
42924292
- eBay
42934293
/v1/ebay/completed:
42944294
get:
4295-
description: Search completed/sold listings — eBay's sold-price history.
4296-
operationId: ebay_completed_sold_listings
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
42974299
parameters:
42984300
- description: Search keywords
42994301
explode: true
@@ -4395,7 +4397,7 @@ paths:
43954397
description: Validation Error
43964398
security:
43974399
- ApiKeyAuth: []
4398-
summary: Completed / sold listings
4400+
summary: Completed / sold listings (deprecated)
43994401
tags:
44004402
- eBay
44014403
/v1/ebay/health:

docs/EBayApi.md

Lines changed: 14 additions & 14 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-
| [**EbayCompletedSoldListings**](EBayApi.md#ebaycompletedsoldlistings) | **GET** /v1/ebay/completed | Completed / sold listings |
8+
| [**EbayCompletedSoldListingsDeprecated**](EBayApi.md#ebaycompletedsoldlistingsdeprecated) | **GET** /v1/ebay/completed | Completed / sold listings (deprecated) |
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="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)
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)
137137
138-
Completed / sold listings
138+
Completed / sold listings (deprecated)
139139

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

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

151151
namespace Example
152152
{
153-
public class EbayCompletedSoldListingsExample
153+
public class EbayCompletedSoldListingsDeprecatedExample
154154
{
155155
public static void Main()
156156
{
@@ -177,13 +177,13 @@ namespace Example
177177
178178
try
179179
{
180-
// Completed / sold listings
181-
Object result = apiInstance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
180+
// Completed / sold listings (deprecated)
181+
Object result = apiInstance.EbayCompletedSoldListingsDeprecated(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.EbayCompletedSoldListings: " + e.Message);
186+
Debug.Print("Exception when calling EBayApi.EbayCompletedSoldListingsDeprecated: " + 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 EbayCompletedSoldListingsWithHttpInfo variant
195+
#### Using the EbayCompletedSoldListingsDeprecatedWithHttpInfo 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
202-
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsWithHttpInfo(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
201+
// Completed / sold listings (deprecated)
202+
ApiResponse<Object> response = apiInstance.EbayCompletedSoldListingsDeprecatedWithHttpInfo(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.EbayCompletedSoldListingsWithHttpInfo: " + e.Message);
209+
Debug.Print("Exception when calling EBayApi.EbayCompletedSoldListingsDeprecatedWithHttpInfo: " + e.Message);
210210
Debug.Print("Status Code: " + e.ErrorCode);
211211
Debug.Print(e.StackTrace);
212212
}

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 EbayCompletedSoldListings
75+
/// Test EbayCompletedSoldListingsDeprecated
7676
/// </summary>
7777
[Fact]
78-
public void EbayCompletedSoldListingsTest()
78+
public void EbayCompletedSoldListingsDeprecatedTest()
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 EbayCompletedSoldListingsTest()
8787
//string condition = null;
8888
//decimal? minPrice = null;
8989
//decimal? maxPrice = null;
90-
//var response = instance.EbayCompletedSoldListings(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
90+
//var response = instance.EbayCompletedSoldListingsDeprecated(query, domain, categoryId, page, perPage, sortBy, condition, minPrice, maxPrice);
9191
//Assert.IsType<Object>(response);
9292
}
9393

0 commit comments

Comments
 (0)