Skip to content

Commit a6d4505

Browse files
author
scrapebadger-bot
committed
chore: regenerate SDK from OpenAPI spec
1 parent d4ebe95 commit a6d4505

8 files changed

Lines changed: 93 additions & 33 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", "{36A6EB78-8C1E-4A39-82E3-5BA2338FCEA6}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ScrapeBadger", "src\ScrapeBadger\ScrapeBadger.csproj", "{91E4C476-EBE0-4BF8-B4E7-5E784582B833}"
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-
{36A6EB78-8C1E-4A39-82E3-5BA2338FCEA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{36A6EB78-8C1E-4A39-82E3-5BA2338FCEA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{36A6EB78-8C1E-4A39-82E3-5BA2338FCEA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{36A6EB78-8C1E-4A39-82E3-5BA2338FCEA6}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{91E4C476-EBE0-4BF8-B4E7-5E784582B833}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{91E4C476-EBE0-4BF8-B4E7-5E784582B833}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{91E4C476-EBE0-4BF8-B4E7-5E784582B833}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{91E4C476-EBE0-4BF8-B4E7-5E784582B833}.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: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,6 +3135,17 @@ paths:
31353135
title: Web Search
31363136
type: string
31373137
style: form
3138+
- description: Public http(s) URL of an image to attach to the prompt. ChatGPT
3139+
reads it and answers about it. POST also accepts `image_base64`. Exactly
3140+
one of the two.
3141+
explode: true
3142+
in: query
3143+
name: image_url
3144+
required: false
3145+
schema:
3146+
nullable: true
3147+
type: string
3148+
style: form
31383149
responses:
31393150
"200":
31403151
content:
@@ -5923,6 +5934,17 @@ paths:
59235934
title: Web Search
59245935
type: string
59255936
style: form
5937+
- description: Public http(s) URL of an image to attach to the prompt. Gemini
5938+
reads it and answers about it. POST also accepts `image_base64`. Exactly
5939+
one of the two.
5940+
explode: true
5941+
in: query
5942+
name: image_url
5943+
required: false
5944+
schema:
5945+
nullable: true
5946+
type: string
5947+
style: form
59265948
responses:
59275949
"200":
59285950
content:

docs/ChatGPTApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ All URIs are relative to *https://scrapebadger.com*
1414

1515
<a id="chatgptaskchatgptaquestion"></a>
1616
# **ChatgptAskChatgptAQuestion**
17-
> Object ChatgptAskChatgptAQuestion (string prompt, string country = null, string webSearch = null)
17+
> Object ChatgptAskChatgptAQuestion (string prompt, string country = null, string webSearch = null, string imageUrl = null)
1818
1919
Ask ChatGPT a question
2020

@@ -49,11 +49,12 @@ namespace Example
4949
var prompt = "prompt_example"; // string | The prompt to send to ChatGPT (max 4096 characters).
5050
var country = "country_example"; // string | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
5151
var webSearch = "\"auto\""; // string | auto (let ChatGPT decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional) (default to "auto")
52+
var imageUrl = "imageUrl_example"; // string | Public http(s) URL of an image to attach to the prompt. ChatGPT reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
5253
5354
try
5455
{
5556
// Ask ChatGPT a question
56-
Object result = apiInstance.ChatgptAskChatgptAQuestion(prompt, country, webSearch);
57+
Object result = apiInstance.ChatgptAskChatgptAQuestion(prompt, country, webSearch, imageUrl);
5758
Debug.WriteLine(result);
5859
}
5960
catch (ApiException e)
@@ -74,7 +75,7 @@ This returns an ApiResponse object which contains the response data, status code
7475
try
7576
{
7677
// Ask ChatGPT a question
77-
ApiResponse<Object> response = apiInstance.ChatgptAskChatgptAQuestionWithHttpInfo(prompt, country, webSearch);
78+
ApiResponse<Object> response = apiInstance.ChatgptAskChatgptAQuestionWithHttpInfo(prompt, country, webSearch, imageUrl);
7879
Debug.Write("Status Code: " + response.StatusCode);
7980
Debug.Write("Response Headers: " + response.Headers);
8081
Debug.Write("Response Body: " + response.Data);
@@ -94,6 +95,7 @@ catch (ApiException e)
9495
| **prompt** | **string** | The prompt to send to ChatGPT (max 4096 characters). | |
9596
| **country** | **string** | ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. | [optional] |
9697
| **webSearch** | **string** | auto (let ChatGPT decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. | [optional] [default to &quot;auto&quot;] |
98+
| **imageUrl** | **string** | Public http(s) URL of an image to attach to the prompt. ChatGPT reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. | [optional] |
9799

98100
### Return type
99101

docs/GeminiApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ All URIs are relative to *https://scrapebadger.com*
1313

1414
<a id="geminiaskgeminiaquestion"></a>
1515
# **GeminiAskGeminiAQuestion**
16-
> Object GeminiAskGeminiAQuestion (string prompt, string country = null, string webSearch = null)
16+
> Object GeminiAskGeminiAQuestion (string prompt, string country = null, string webSearch = null, string imageUrl = null)
1717
1818
Ask Gemini a question
1919

@@ -48,11 +48,12 @@ namespace Example
4848
var prompt = "prompt_example"; // string | The prompt to send to Gemini (max 4096 characters).
4949
var country = "country_example"; // string | ISO-3166 alpha-2 egress country, e.g. 'US', 'GB', 'DE'. (optional)
5050
var webSearch = "\"auto\""; // string | auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). `web_search_triggered` in the response always reports what actually happened. (optional) (default to "auto")
51+
var imageUrl = "imageUrl_example"; // string | Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts `image_base64`. Exactly one of the two. (optional)
5152
5253
try
5354
{
5455
// Ask Gemini a question
55-
Object result = apiInstance.GeminiAskGeminiAQuestion(prompt, country, webSearch);
56+
Object result = apiInstance.GeminiAskGeminiAQuestion(prompt, country, webSearch, imageUrl);
5657
Debug.WriteLine(result);
5758
}
5859
catch (ApiException e)
@@ -73,7 +74,7 @@ This returns an ApiResponse object which contains the response data, status code
7374
try
7475
{
7576
// Ask Gemini a question
76-
ApiResponse<Object> response = apiInstance.GeminiAskGeminiAQuestionWithHttpInfo(prompt, country, webSearch);
77+
ApiResponse<Object> response = apiInstance.GeminiAskGeminiAQuestionWithHttpInfo(prompt, country, webSearch, imageUrl);
7778
Debug.Write("Status Code: " + response.StatusCode);
7879
Debug.Write("Response Headers: " + response.Headers);
7980
Debug.Write("Response Body: " + response.Data);
@@ -93,6 +94,7 @@ catch (ApiException e)
9394
| **prompt** | **string** | The prompt to send to Gemini (max 4096 characters). | |
9495
| **country** | **string** | ISO-3166 alpha-2 egress country, e.g. &#39;US&#39;, &#39;GB&#39;, &#39;DE&#39;. | [optional] |
9596
| **webSearch** | **string** | auto (let Gemini decide) | force (ask it to browse) | off (answer from memory). &#x60;web_search_triggered&#x60; in the response always reports what actually happened. | [optional] [default to &quot;auto&quot;] |
97+
| **imageUrl** | **string** | Public http(s) URL of an image to attach to the prompt. Gemini reads it and answers about it. POST also accepts &#x60;image_base64&#x60;. Exactly one of the two. | [optional] |
9698

9799
### Return type
98100

src/ScrapeBadger.Test/Api/ChatGPTApiTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public void ChatgptAskChatgptAQuestionTest()
6363
//string prompt = null;
6464
//string country = null;
6565
//string webSearch = null;
66-
//var response = instance.ChatgptAskChatgptAQuestion(prompt, country, webSearch);
66+
//string imageUrl = null;
67+
//var response = instance.ChatgptAskChatgptAQuestion(prompt, country, webSearch, imageUrl);
6768
//Assert.IsType<Object>(response);
6869
}
6970

src/ScrapeBadger.Test/Api/GeminiApiTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public void GeminiAskGeminiAQuestionTest()
6363
//string prompt = null;
6464
//string country = null;
6565
//string webSearch = null;
66-
//var response = instance.GeminiAskGeminiAQuestion(prompt, country, webSearch);
66+
//string imageUrl = null;
67+
//var response = instance.GeminiAskGeminiAQuestion(prompt, country, webSearch, imageUrl);
6768
//Assert.IsType<Object>(response);
6869
}
6970

0 commit comments

Comments
 (0)