GroupDocs.Translation-Cloud
23.10.1
See the version list below for details.
dotnet add package GroupDocs.Translation-Cloud --version 23.10.1
NuGet\Install-Package GroupDocs.Translation-Cloud -Version 23.10.1
<PackageReference Include="GroupDocs.Translation-Cloud" Version="23.10.1" />
paket add GroupDocs.Translation-Cloud --version 23.10.1
#r "nuget: GroupDocs.Translation-Cloud, 23.10.1"
// Install GroupDocs.Translation-Cloud as a Cake Addin #addin nuget:?package=GroupDocs.Translation-Cloud&version=23.10.1 // Install GroupDocs.Translation-Cloud as a Cake Tool #tool nuget:?package=GroupDocs.Translation-Cloud&version=23.10.1
GroupDocs.Translation.Cloud.Sdk (.NET)
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This C# SDK is automatically generated by the OpenAPI Generator project:
- API version: 23.9.4
- SDK version: 1.0.0
- Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit https://products.groupdocs.cloud/translation/
<a name="frameworks-supported"></a>
Frameworks supported
- .NET Core >=1.0
- .NET Framework >=4.6
- Mono/Xamarin >=vNext
<a name="dependencies"></a>
Dependencies
- RestSharp - 106.13.0 or later
- Json.NET - 13.0.2 or later
- JsonSubTypes - 1.8.0 or later
- System.ComponentModel.Annotations - 5.0.0 or later
The DLLs included in the package may not be the latest version. We recommend using NuGet to obtain the latest version of the packages:
Install-Package RestSharp
Install-Package Newtonsoft.Json
Install-Package JsonSubTypes
Install-Package System.ComponentModel.Annotations
NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742. NOTE: RestSharp for .Net Core creates a new socket for each api call, which can lead to a socket exhaustion problem. See RestSharp#1406.
<a name="installation"></a>
Installation
Generate the DLL using your preferred tool (e.g. dotnet build
)
Then include the DLL (under the bin
folder) in the C# project, and use the namespaces:
using GroupDocs.Translation.Cloud.Sdk.Api;
using GroupDocs.Translation.Cloud.Sdk.Client;
using GroupDocs.Translation.Cloud.Sdk.Model;
<a name="usage"></a>
Usage
To use the API client with a HTTP proxy, setup a System.Net.WebProxy
Configuration c = new Configuration();
System.Net.WebProxy webProxy = new System.Net.WebProxy("http://myProxyUrl:80/");
webProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
c.Proxy = webProxy;
<a name="getting-started"></a>
Getting Started
using System.Collections.Generic;
using System.Diagnostics;
using GroupDocs.Translation.Cloud.Sdk.Api;
using GroupDocs.Translation.Cloud.Sdk.Client;
using GroupDocs.Translation.Cloud.Sdk.Model;
namespace Example
{
public class Example
{
public static void Main()
{
Configuration config = new Configuration();
config.BasePath = "https://api.groupdocs.cloud/v2.0/translation";
// Configure OAuth2 ClientId and ClientSecret: JWT
config.OAuthClientId = "YOU_CLIENT_ID";
config.OAuthClientSecret = "YOU_CLIENT_SECRET";
config.OAuthFlow = OAuthFlow.APPLICATION;
var apiInstance = new TranslationApi(config);
var fileRequest = new FileRequest(); // FileRequest | String in body of request, containing JSON with parameters for translation. (optional)
try
{
// Translate any supported file
StatusResponse result = apiInstance.AutoPost(fileRequest);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Debug.Print("Exception when calling TranslationApi.AutoPost: " + e.Message );
Debug.Print("Status Code: "+ e.ErrorCode);
Debug.Print(e.StackTrace);
}
}
}
}
<a name="documentation-for-api-endpoints"></a>
Documentation for API Endpoints
All URIs are relative to https://api.groupdocs.cloud/v2.0/translation
Class | Method | HTTP request | Description |
---|---|---|---|
TranslationApi | AutoPost | POST /auto | Translate any supported file |
TranslationApi | CsvPost | POST /csv | Translate CSV and TSV files |
TranslationApi | DocumentPost | POST /document | Translate Microsoft Word documents, rtf, txt, odt |
TranslationApi | DocumentRequestIdGet | GET /document/{requestId} | Return document translation status. Also return URLs for downloading of translated document if translation was successful |
TranslationApi | DocumentTrialPost | POST /document/trial | Trial translate Microsoft Word documents, rtf, txt, odt without conversation. Translate only first page or 1000 symbols. |
TranslationApi | HcGet | GET /hc | Health check for all services. |
TranslationApi | HtmlPost | POST /html | Translate HTML files |
TranslationApi | HugoGet | GET /hugo | Get hugo syntax structure from markdown file |
TranslationApi | HugoPost | POST /hugo | Run hugo syntax structure analyzing from markdown file |
TranslationApi | ImageToFilePost | POST /image-to-file | Translate image or scanned pdf and return file |
TranslationApi | ImageToTextPost | POST /image-to-text | Translate text on image or scanned pdf |
TranslationApi | LanguagesGet | GET /languages | Return list of available language pairs |
TranslationApi | MarkdownPost | POST /markdown | Translate Markdown files |
TranslationApi | PdfPost | POST /pdf | Translate pdf files |
TranslationApi | PdfTrialPost | POST /pdf/trial | Trial pdf translation. Translate only first page without conversion to another format. |
TranslationApi | PresentationPost | POST /presentation | Translate Microsoft PowerPoint presentations, odp |
TranslationApi | ResxPost | POST /resx | Translate RESX files |
TranslationApi | SpreadsheetPost | POST /spreadsheet | Translate Microsoft Excel workbooks, ods |
TranslationApi | TextPost | POST /text | Translate text |
TranslationApi | TextRequestIdGet | GET /text/{requestId} | Return text translation status. Also return translated text if translation was successful |
TranslationApi | TextTrialPost | POST /text/trial | Trial translate text. Translate only 1000 symbols. |
<a name="documentation-for-models"></a>
Documentation for Models
- Model.CloudFileResponse
- Model.CloudHugoResponse
- Model.CloudTextResponse
- Model.CsvFileRequest
- Model.FileRequest
- Model.HealthCheckStatus
- Model.HtmlFileRequest
- Model.HttpStatusCode
- Model.HugoRequest
- Model.ImageToFileRequest
- Model.ImageToTextRequest
- Model.LanguagePairData
- Model.MarkdownFileRequest
- Model.PdfFileRequest
- Model.PresentationFileRequest
- Model.ResxFileRequest
- Model.SpreadsheetFileRequest
- Model.StatusResponse
- Model.StringStringTuple
- Model.TextDocumentFileRequest
- Model.TextRequest
- Model.UrlFileInfo
- Model.WorksheetData
<a name="documentation-for-authorization"></a>
Documentation for Authorization
<a name="JWT"></a>
JWT
- Type: OAuth
- Flow: application
- Authorization URL: https://id.groupdocs.cloud/
- Scopes: N/A
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- JsonSubTypes (>= 1.9.0)
- Newtonsoft.Json (>= 13.0.2)
- Polly (>= 7.2.3)
- RestSharp (>= 108.0.2)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.IdentityModel.Tokens.Jwt (>= 6.30.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on GroupDocs.Translation-Cloud:
Repository | Stars |
---|---|
aspose-pdf/Aspose.PDF-for-.NET
Aspose.PDF for .NET examples, plugins and showcase projects
|
Version | Downloads | Last updated |
---|---|---|
24.6.0 | 123 | 6/3/2024 |
24.5.0 | 121 | 5/26/2024 |
24.3.0 | 134 | 3/22/2024 |
23.12.0 | 795 | 12/22/2023 |
23.10.5 | 336 | 10/26/2023 |
23.10.1 | 205 | 10/18/2023 |
23.10.0 | 149 | 10/18/2023 |
23.9.4 | 381 | 9/27/2023 |
23.9.3-pre | 123 | 9/11/2023 |
23.9.0-pre | 107 | 9/6/2023 |
23.8.3-pre | 116 | 9/1/2023 |
23.8.2-pre | 147 | 8/25/2023 |
23.8.0-pre | 131 | 8/9/2023 |
23.6.1-pre | 412 | 6/30/2023 |
23.6.0-pre | 146 | 6/30/2023 |
22.12.0 | 3,448 | 12/12/2022 |
22.11.0 | 331 | 11/28/2022 |
22.8.1 | 1,711 | 8/30/2022 |
22.8.0 | 541 | 8/5/2022 |
22.5.2 | 509 | 6/28/2022 |
22.5.1 | 424 | 6/15/2022 |
22.5.0 | 466 | 5/18/2022 |
22.4.0 | 459 | 4/25/2022 |
22.2.0 | 459 | 2/21/2022 |
21.6.0 | 6,030 | 6/25/2021 |
20.12.1 | 563 | 1/14/2021 |
20.12.0 | 476 | 12/21/2020 |
20.10.0 | 464 | 11/3/2020 |
20.9.0 | 442 | 9/23/2020 |
20.8.0 | 453 | 8/31/2020 |
20.7.0 | 501 | 7/17/2020 |
20.6.0 | 508 | 6/23/2020 |