Skip to content

Commit 4144d60

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent c520975 commit 4144d60

5 files changed

Lines changed: 50 additions & 19 deletions

File tree

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", "{D0C36465-F665-4DC0-B3F7-45C7E50BA335}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{741A8E15-A08D-4143-9DD6-AD1458495F45}"
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-
{D0C36465-F665-4DC0-B3F7-45C7E50BA335}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{D0C36465-F665-4DC0-B3F7-45C7E50BA335}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{D0C36465-F665-4DC0-B3F7-45C7E50BA335}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{D0C36465-F665-4DC0-B3F7-45C7E50BA335}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{741A8E15-A08D-4143-9DD6-AD1458495F45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{741A8E15-A08D-4143-9DD6-AD1458495F45}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{741A8E15-A08D-4143-9DD6-AD1458495F45}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{741A8E15-A08D-4143-9DD6-AD1458495F45}.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: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,18 @@ paths:
10851085
nullable: true
10861086
type: string
10871087
style: form
1088+
- description: "Offer page, 10 rows each"
1089+
explode: true
1090+
in: query
1091+
name: page
1092+
required: false
1093+
schema:
1094+
default: 1
1095+
description: "Offer page, 10 rows each"
1096+
minimum: 1
1097+
title: Page
1098+
type: integer
1099+
style: form
10881100
responses:
10891101
"200":
10901102
content:

docs/AmazonApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ catch (ApiException e)
425425

426426
<a id="amazongetallselleroffersbuybox"></a>
427427
# **AmazonGetAllSellerOffersBuybox**
428-
> Object AmazonGetAllSellerOffersBuybox (string asin, string domain = null, string zip = null)
428+
> Object AmazonGetAllSellerOffersBuybox (string asin, string domain = null, string zip = null, int? page = null)
429429
430430
Get all seller offers (buybox)
431431

@@ -460,11 +460,12 @@ namespace Example
460460
var asin = "asin_example"; // string |
461461
var domain = "\"com\""; // string | (optional) (default to "com")
462462
var zip = "zip_example"; // string | (optional)
463+
var page = 1; // int? | Offer page, 10 rows each (optional) (default to 1)
463464
464465
try
465466
{
466467
// Get all seller offers (buybox)
467-
Object result = apiInstance.AmazonGetAllSellerOffersBuybox(asin, domain, zip);
468+
Object result = apiInstance.AmazonGetAllSellerOffersBuybox(asin, domain, zip, page);
468469
Debug.WriteLine(result);
469470
}
470471
catch (ApiException e)
@@ -485,7 +486,7 @@ This returns an ApiResponse object which contains the response data, status code
485486
try
486487
{
487488
// Get all seller offers (buybox)
488-
ApiResponse<Object> response = apiInstance.AmazonGetAllSellerOffersBuyboxWithHttpInfo(asin, domain, zip);
489+
ApiResponse<Object> response = apiInstance.AmazonGetAllSellerOffersBuyboxWithHttpInfo(asin, domain, zip, page);
489490
Debug.Write("Status Code: " + response.StatusCode);
490491
Debug.Write("Response Headers: " + response.Headers);
491492
Debug.Write("Response Body: " + response.Data);
@@ -505,6 +506,7 @@ catch (ApiException e)
505506
| **asin** | **string** | | |
506507
| **domain** | **string** | | [optional] [default to &quot;com&quot;] |
507508
| **zip** | **string** | | [optional] |
509+
| **page** | **int?** | Offer page, 10 rows each | [optional] [default to 1] |
508510

509511
### Return type
510512

src/ScrapeBadger.Test/Api/AmazonApiTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ public void AmazonGetAllSellerOffersBuyboxTest()
114114
//string asin = null;
115115
//string domain = null;
116116
//string zip = null;
117-
//var response = instance.AmazonGetAllSellerOffersBuybox(asin, domain, zip);
117+
//int? page = null;
118+
//var response = instance.AmazonGetAllSellerOffersBuybox(asin, domain, zip, page);
118119
//Assert.IsType<Object>(response);
119120
}
120121

src/ScrapeBadger/Api/AmazonApi.cs

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ public interface IAmazonApiSync : IApiAccessor
127127
/// <param name="asin"></param>
128128
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
129129
/// <param name="zip"> (optional)</param>
130+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
130131
/// <returns>Object</returns>
131-
Object AmazonGetAllSellerOffersBuybox(string asin, string domain = default(string), string zip = default(string));
132+
Object AmazonGetAllSellerOffersBuybox(string asin, string domain = default(string), string zip = default(string), int? page = default(int?));
132133

133134
/// <summary>
134135
/// Get all seller offers (buybox)
@@ -140,8 +141,9 @@ public interface IAmazonApiSync : IApiAccessor
140141
/// <param name="asin"></param>
141142
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
142143
/// <param name="zip"> (optional)</param>
144+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
143145
/// <returns>ApiResponse of Object</returns>
144-
ApiResponse<Object> AmazonGetAllSellerOffersBuyboxWithHttpInfo(string asin, string domain = default(string), string zip = default(string));
146+
ApiResponse<Object> AmazonGetAllSellerOffersBuyboxWithHttpInfo(string asin, string domain = default(string), string zip = default(string), int? page = default(int?));
145147
/// <summary>
146148
/// Get product detail
147149
/// </summary>
@@ -542,9 +544,10 @@ public interface IAmazonApiAsync : IApiAccessor
542544
/// <param name="asin"></param>
543545
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
544546
/// <param name="zip"> (optional)</param>
547+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
545548
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
546549
/// <returns>Task of Object</returns>
547-
System.Threading.Tasks.Task<Object> AmazonGetAllSellerOffersBuyboxAsync(string asin, string domain = default(string), string zip = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
550+
System.Threading.Tasks.Task<Object> AmazonGetAllSellerOffersBuyboxAsync(string asin, string domain = default(string), string zip = default(string), int? page = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
548551

549552
/// <summary>
550553
/// Get all seller offers (buybox)
@@ -556,9 +559,10 @@ public interface IAmazonApiAsync : IApiAccessor
556559
/// <param name="asin"></param>
557560
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
558561
/// <param name="zip"> (optional)</param>
562+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
559563
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
560564
/// <returns>Task of ApiResponse (Object)</returns>
561-
System.Threading.Tasks.Task<ApiResponse<Object>> AmazonGetAllSellerOffersBuyboxWithHttpInfoAsync(string asin, string domain = default(string), string zip = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
565+
System.Threading.Tasks.Task<ApiResponse<Object>> AmazonGetAllSellerOffersBuyboxWithHttpInfoAsync(string asin, string domain = default(string), string zip = default(string), int? page = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken));
562566
/// <summary>
563567
/// Get product detail
564568
/// </summary>
@@ -1614,10 +1618,11 @@ public ScrapeBadger.Client.ApiResponse<Object> AmazonAmazonScraperHealthCheckHea
16141618
/// <param name="asin"></param>
16151619
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
16161620
/// <param name="zip"> (optional)</param>
1621+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
16171622
/// <returns>Object</returns>
1618-
public Object AmazonGetAllSellerOffersBuybox(string asin, string domain = default(string), string zip = default(string))
1623+
public Object AmazonGetAllSellerOffersBuybox(string asin, string domain = default(string), string zip = default(string), int? page = default(int?))
16191624
{
1620-
ScrapeBadger.Client.ApiResponse<Object> localVarResponse = AmazonGetAllSellerOffersBuyboxWithHttpInfo(asin, domain, zip);
1625+
ScrapeBadger.Client.ApiResponse<Object> localVarResponse = AmazonGetAllSellerOffersBuyboxWithHttpInfo(asin, domain, zip, page);
16211626
return localVarResponse.Data;
16221627
}
16231628

@@ -1628,8 +1633,9 @@ public ScrapeBadger.Client.ApiResponse<Object> AmazonAmazonScraperHealthCheckHea
16281633
/// <param name="asin"></param>
16291634
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
16301635
/// <param name="zip"> (optional)</param>
1636+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
16311637
/// <returns>ApiResponse of Object</returns>
1632-
public ScrapeBadger.Client.ApiResponse<Object> AmazonGetAllSellerOffersBuyboxWithHttpInfo(string asin, string domain = default(string), string zip = default(string))
1638+
public ScrapeBadger.Client.ApiResponse<Object> AmazonGetAllSellerOffersBuyboxWithHttpInfo(string asin, string domain = default(string), string zip = default(string), int? page = default(int?))
16331639
{
16341640
// verify the required parameter 'asin' is set
16351641
if (asin == null)
@@ -1660,6 +1666,10 @@ public ScrapeBadger.Client.ApiResponse<Object> AmazonAmazonScraperHealthCheckHea
16601666
{
16611667
localVarRequestOptions.QueryParameters.Add(ScrapeBadger.Client.ClientUtils.ParameterToMultiMap("", "zip", zip));
16621668
}
1669+
if (page != null)
1670+
{
1671+
localVarRequestOptions.QueryParameters.Add(ScrapeBadger.Client.ClientUtils.ParameterToMultiMap("", "page", page));
1672+
}
16631673

16641674
// authentication (ApiKeyAuth) required
16651675
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-Key")))
@@ -1686,11 +1696,12 @@ public ScrapeBadger.Client.ApiResponse<Object> AmazonAmazonScraperHealthCheckHea
16861696
/// <param name="asin"></param>
16871697
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
16881698
/// <param name="zip"> (optional)</param>
1699+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
16891700
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
16901701
/// <returns>Task of Object</returns>
1691-
public async System.Threading.Tasks.Task<Object> AmazonGetAllSellerOffersBuyboxAsync(string asin, string domain = default(string), string zip = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
1702+
public async System.Threading.Tasks.Task<Object> AmazonGetAllSellerOffersBuyboxAsync(string asin, string domain = default(string), string zip = default(string), int? page = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
16921703
{
1693-
ScrapeBadger.Client.ApiResponse<Object> localVarResponse = await AmazonGetAllSellerOffersBuyboxWithHttpInfoAsync(asin, domain, zip, cancellationToken).ConfigureAwait(false);
1704+
ScrapeBadger.Client.ApiResponse<Object> localVarResponse = await AmazonGetAllSellerOffersBuyboxWithHttpInfoAsync(asin, domain, zip, page, cancellationToken).ConfigureAwait(false);
16941705
return localVarResponse.Data;
16951706
}
16961707

@@ -1701,9 +1712,10 @@ public ScrapeBadger.Client.ApiResponse<Object> AmazonAmazonScraperHealthCheckHea
17011712
/// <param name="asin"></param>
17021713
/// <param name="domain"> (optional, default to &quot;com&quot;)</param>
17031714
/// <param name="zip"> (optional)</param>
1715+
/// <param name="page">Offer page, 10 rows each (optional, default to 1)</param>
17041716
/// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
17051717
/// <returns>Task of ApiResponse (Object)</returns>
1706-
public async System.Threading.Tasks.Task<ScrapeBadger.Client.ApiResponse<Object>> AmazonGetAllSellerOffersBuyboxWithHttpInfoAsync(string asin, string domain = default(string), string zip = default(string), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
1718+
public async System.Threading.Tasks.Task<ScrapeBadger.Client.ApiResponse<Object>> AmazonGetAllSellerOffersBuyboxWithHttpInfoAsync(string asin, string domain = default(string), string zip = default(string), int? page = default(int?), System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken))
17071719
{
17081720
// verify the required parameter 'asin' is set
17091721
if (asin == null)
@@ -1736,6 +1748,10 @@ public ScrapeBadger.Client.ApiResponse<Object> AmazonAmazonScraperHealthCheckHea
17361748
{
17371749
localVarRequestOptions.QueryParameters.Add(ScrapeBadger.Client.ClientUtils.ParameterToMultiMap("", "zip", zip));
17381750
}
1751+
if (page != null)
1752+
{
1753+
localVarRequestOptions.QueryParameters.Add(ScrapeBadger.Client.ClientUtils.ParameterToMultiMap("", "page", page));
1754+
}
17391755

17401756
// authentication (ApiKeyAuth) required
17411757
if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("X-API-Key")))

0 commit comments

Comments
 (0)