YaDictionarySDKNetFramework 1.0.7
dotnet add package YaDictionarySDKNetFramework --version 1.0.7
NuGet\Install-Package YaDictionarySDKNetFramework -Version 1.0.7
<PackageReference Include="YaDictionarySDKNetFramework" Version="1.0.7" />
paket add YaDictionarySDKNetFramework --version 1.0.7
#r "nuget: YaDictionarySDKNetFramework, 1.0.7"
// Install YaDictionarySDKNetFramework as a Cake Addin
#addin nuget:?package=YaDictionarySDKNetFramework&version=1.0.7
// Install YaDictionarySDKNetFramework as a Cake Tool
#tool nuget:?package=YaDictionarySDKNetFramework&version=1.0.7
YaDictionarySDK
YaDictionarySDK is a .NET Framework 4.8 C# library which provides access for Yandex Dictionary API:
https://yandex.com/dev/dictionary/
This project includes C# library with methods for Yandex Dictionary API and unit tests for this code.
How to use
var yaSdk = new YaDictionary(apiKey);
var languages = await yaSdk.GetLanguagesAsync();
string languagePair = "de-ru";
string wordToTranslate = "Traum";
var translation = await yaSdk.GetTranslationAsync(wordToTranslate, languagePair);
Prerequisites
Requires .NET Framework 4.8. HttpClient was used in this library. The Api key for tests should be placed into environment variable with name "YA_DICTIONARY_API_KEY".
Terms of Use
As decribed in the <a href="https://yandex.com/legal/dictionary_api/">Terms of Use for Yandex Dictionary service</a> the following text: “Powered by Yandex.Dictionary” with the clickable hyperlink to the page http://api.yandex.com/dictionary must be shown strictly over or under the dictionary articles.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
-
.NETFramework 4.8
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Sync methods were added