C# client for OneSky API.
Install NuGet package:
- Run
Install-Package OneSky.CSharp
in the Package Manager Console - Or find package in NuGet Package Manager
Or just Pull & Compile
- Newtonsoft.Json [For JSON interaction]
// Creating OneSky Client
var oneskyClient = OneSky.CSharp.Json.OneSkyClient.CreateClient(
"Your public API key",
"Your secret API key");
// Creating 'Project Group' and 'Project'
var projectGroup = oneskyClient.Platform.ProjectGroup
.Create("QuickStart group", "by" /*your locale*/).Data;
var project = oneskyClient.Platform.Project
.Create(projectGroup.Id, "QuickStart project").Data;
// Uploading 2 files - for base locale and for 'en' locale
oneskyClient.Platform.File
.Upload(project.Id, "Path/To/Your/File.ext", "INI" /*or your file format*/);
oneskyClient.Platform.File
.Upload(project.Id, "Path/To/Your/File.InEn.ext", "INI", "en");
// Downloading tranlsation for specific locale ('en') and saving it to file
var translation = oneskyClient.Platform.Translation
.Export(project.Id, "en", "File.ext").Data;
System.IO.File.WriteAllBytes(
"Path/To/Save/Translation.ext",
Encoding.UTF8.GetBytes(translation));
To find your API keys please go to OneSky Support page.
For more information go to Wiki (Soon)
- OneSkyApp Team - Thanks for translation platform itself
- Felix Deimel (lemonmojo) - Alternative implementation (Here on GitHub)
- OneSky.CSharp: Main library project.
- OneSky.CSharp.Tests: Tests for main library [Depends on xUnit and FluentAssertions].
- Pull requests are very welcome! Don't forget to use separate branch for each separate pull request.
- If you have an idea, found bug or have a question - feel free to create new Issue
This lib is covered by tests (partially) located in OneSky.CSharp.Tests.
To run this tests in VS - build solution, open Test Explorer window (Alt, S, W, T), click 'Run All..'. Or use any test runner you're familiar with.