Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alanedwardes/ae.gengo.client
C# client for the Gengo translation service API - https://gengo.com/
https://github.com/alanedwardes/ae.gengo.client
gengo translation
Last synced: 1 day ago
JSON representation
C# client for the Gengo translation service API - https://gengo.com/
- Host: GitHub
- URL: https://github.com/alanedwardes/ae.gengo.client
- Owner: alanedwardes
- License: mit
- Created: 2019-06-23T19:35:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T05:44:18.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T10:18:57.889Z (7 days ago)
- Topics: gengo, translation
- Language: C#
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ae.Gengo.Client [![](https://img.shields.io/nuget/v/Ae.Gengo.Client.svg)](https://www.nuget.org/packages/Ae.Gengo.Client)
C# client for the Gengo translation service API - https://gengo.com/## Usage
### With Microsoft.Extensions.DependencyInjection
```csharp
IGengoConfigV2 config = new GengoConfigV2
{
Key = "key",
Secret = "secret"
};ServiceCollection services = new ServiceCollection();
services.AddGengoClientV2(config, options => options.BaseAddress = new Uri("http://api.gengo.com/"));
IServiceProvider provider = services.BuildServiceProvider();
IGengoClientV2 client = provider.GetRequiredService();
```### With HTTP Client
```csharp
IGengoConfigV2 config = new GengoConfigV2
{
Key = "key",
Secret = "secret"
};var handler = new GengoHandlerV2(config)
{
InnerHandler = new HttpClientHandler()
};var httpClient = new HttpClient(handler)
{
BaseAddress = new Uri("http://api.gengo.com/")
};IGengoClientV2 client = new GengoClientV2(httpClient);
```