Skip to content

Commit 789138b

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent f82aed7 commit 789138b

5 files changed

Lines changed: 75 additions & 41 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", "{C50D0D42-BB93-473D-8686-F28EEA579CF6}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{277B7B51-A940-4549-97CA-97FAA7CAA5FF}"
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-
{C50D0D42-BB93-473D-8686-F28EEA579CF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{C50D0D42-BB93-473D-8686-F28EEA579CF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{C50D0D42-BB93-473D-8686-F28EEA579CF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{C50D0D42-BB93-473D-8686-F28EEA579CF6}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{277B7B51-A940-4549-97CA-97FAA7CAA5FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{277B7B51-A940-4549-97CA-97FAA7CAA5FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{277B7B51-A940-4549-97CA-97FAA7CAA5FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{277B7B51-A940-4549-97CA-97FAA7CAA5FF}.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: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5315,7 +5315,13 @@ paths:
53155315
- Facebook
53165316
/v1/facebook/marketplace/search:
53175317
get:
5318-
description: Search Facebook Marketplace listings by keyword and location.
5318+
description: |-
5319+
Search Facebook Marketplace listings by keyword and location.
5320+
5321+
``location`` must be a Facebook location slug (``london``, ``newcastleupontyne``)
5322+
or a numeric Facebook place id — the ``city_page_id`` on any listing is one.
5323+
Human-readable names such as ``Durham, UK`` are rejected with a 400 rather than
5324+
silently searching Facebook's San Francisco default.
53195325
operationId: facebook_search_marketplace
53205326
parameters:
53215327
- description: Search keywords
@@ -5328,14 +5334,14 @@ paths:
53285334
title: Query
53295335
type: string
53305336
style: form
5331-
- description: Marketplace location slug
5337+
- description: Marketplace location slug or numeric place id
53325338
explode: true
53335339
in: query
53345340
name: location
53355341
required: false
53365342
schema:
53375343
default: nyc
5338-
description: Marketplace location slug
5344+
description: Marketplace location slug or numeric place id
53395345
title: Location
53405346
type: string
53415347
style: form
@@ -5387,6 +5393,15 @@ paths:
53875393
nullable: true
53885394
type: string
53895395
style: form
5396+
- description: "Search radius around the location (km, or miles in the US)"
5397+
explode: true
5398+
in: query
5399+
name: radius
5400+
required: false
5401+
schema:
5402+
nullable: true
5403+
type: integer
5404+
style: form
53905405
- explode: true
53915406
in: query
53925407
name: after

docs/FacebookApi.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,11 +1869,11 @@ catch (ApiException e)
18691869

18701870
<a id="facebooksearchmarketplace"></a>
18711871
# **FacebookSearchMarketplace**
1872-
> Object FacebookSearchMarketplace (string query, string location = null, int? minPrice = null, int? maxPrice = null, int? daysSinceListed = null, string sortBy = null, string itemCondition = null, string deliveryMethod = null, string after = null)
1872+
> Object FacebookSearchMarketplace (string query, string location = null, int? minPrice = null, int? maxPrice = null, int? daysSinceListed = null, string sortBy = null, string itemCondition = null, string deliveryMethod = null, int? radius = null, string after = null)
18731873
18741874
Search Marketplace
18751875

1876-
Search Facebook Marketplace listings by keyword and location.
1876+
Search Facebook Marketplace listings by keyword and location. ``location`` must be a Facebook location slug (``london``, ``newcastleupontyne``) or a numeric Facebook place id — the ``city_page_id`` on any listing is one. Human-readable names such as ``Durham, UK`` are rejected with a 400 rather than silently searching Facebook's San Francisco default.
18771877

18781878
### Example
18791879
```csharp
@@ -1902,19 +1902,20 @@ namespace Example
19021902
HttpClientHandler httpClientHandler = new HttpClientHandler();
19031903
var apiInstance = new FacebookApi(httpClient, config, httpClientHandler);
19041904
var query = "query_example"; // string | Search keywords
1905-
var location = "\"nyc\""; // string | Marketplace location slug (optional) (default to "nyc")
1905+
var location = "\"nyc\""; // string | Marketplace location slug or numeric place id (optional) (default to "nyc")
19061906
var minPrice = 56; // int? | (optional)
19071907
var maxPrice = 56; // int? | (optional)
19081908
var daysSinceListed = 56; // int? | (optional)
19091909
var sortBy = "sortBy_example"; // string | (optional)
19101910
var itemCondition = "itemCondition_example"; // string | (optional)
19111911
var deliveryMethod = "deliveryMethod_example"; // string | (optional)
1912+
var radius = 56; // int? | Search radius around the location (km, or miles in the US) (optional)
19121913
var after = "after_example"; // string | (optional)
19131914
19141915
try
19151916
{
19161917
// Search Marketplace
1917-
Object result = apiInstance.FacebookSearchMarketplace(query, location, minPrice, maxPrice, daysSinceListed, sortBy, itemCondition, deliveryMethod, after);
1918+
Object result = apiInstance.FacebookSearchMarketplace(query, location, minPrice, maxPrice, daysSinceListed, sortBy, itemCondition, deliveryMethod, radius, after);
19181919
Debug.WriteLine(result);
19191920
}
19201921
catch (ApiException e)
@@ -1935,7 +1936,7 @@ This returns an ApiResponse object which contains the response data, status code
19351936
try
19361937
{
19371938
// Search Marketplace
1938-
ApiResponse<Object> response = apiInstance.FacebookSearchMarketplaceWithHttpInfo(query, location, minPrice, maxPrice, daysSinceListed, sortBy, itemCondition, deliveryMethod, after);
1939+
ApiResponse<Object> response = apiInstance.FacebookSearchMarketplaceWithHttpInfo(query, location, minPrice, maxPrice, daysSinceListed, sortBy, itemCondition, deliveryMethod, radius, after);
19391940
Debug.Write("Status Code: " + response.StatusCode);
19401941
Debug.Write("Response Headers: " + response.Headers);
19411942
Debug.Write("Response Body: " + response.Data);
@@ -1953,13 +1954,14 @@ catch (ApiException e)
19531954
| Name | Type | Description | Notes |
19541955
|------|------|-------------|-------|
19551956
| **query** | **string** | Search keywords | |
1956-
| **location** | **string** | Marketplace location slug | [optional] [default to &quot;nyc&quot;] |
1957+
| **location** | **string** | Marketplace location slug or numeric place id | [optional] [default to &quot;nyc&quot;] |
19571958
| **minPrice** | **int?** | | [optional] |
19581959
| **maxPrice** | **int?** | | [optional] |
19591960
| **daysSinceListed** | **int?** | | [optional] |
19601961
| **sortBy** | **string** | | [optional] |
19611962
| **itemCondition** | **string** | | [optional] |
19621963
| **deliveryMethod** | **string** | | [optional] |
1964+
| **radius** | **int?** | Search radius around the location (km, or miles in the US) | [optional] |
19631965
| **after** | **string** | | [optional] |
19641966

19651967
### Return type

src/ScrapeBadger.Test/Api/FacebookApiTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,9 @@ public void FacebookSearchMarketplaceTest()
298298
//string sortBy = null;
299299
//string itemCondition = null;
300300
//string deliveryMethod = null;
301+
//int? radius = null;
301302
//string after = null;
302-
//var response = instance.FacebookSearchMarketplace(query, location, minPrice, maxPrice, daysSinceListed, sortBy, itemCondition, deliveryMethod, after);
303+
//var response = instance.FacebookSearchMarketplace(query, location, minPrice, maxPrice, daysSinceListed, sortBy, itemCondition, deliveryMethod, radius, after);
303304
//Assert.IsType<Object>(response);
304305
}
305306

0 commit comments

Comments
 (0)