Skip to content

Latest commit

 

History

History
68 lines (52 loc) · 1.74 KB

README.md

File metadata and controls

68 lines (52 loc) · 1.74 KB

Illustration_05 1-min

Openfort C# Library

The Openfort SDK library provides convenient access to the Openfort API from the server-side code of your applications.

Documentation

See the (https://www.openfort.xyz/docs/libraries).

Installation

.NET CLI

dotnet add package Openfort.SDK

Package Manager

NuGet\Install-Package Openfort.SDK

PackageReference

<PackageReference Include="Openfort.SDK" />

Usage

The package needs to be configured with your account's secret key, which is available in the Openfort Dashboard. Require it with the key's value:

var client = new Openfort.SDK.OpenfortClient("sk_test_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX");
var players = await client.Players.List();
Console.WriteLine(players.Data.Count);

Support

New features and bug fixes are released on the latest major version of the openfort package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.