Website | Documentation | API Docs | Twitter
The Openfort SDK library provides convenient access to the Openfort API from the server-side code of your applications.
See the (https://www.openfort.xyz/docs/libraries).
.NET CLI
dotnet add package Openfort.SDK
Package Manager
NuGet\Install-Package Openfort.SDK
PackageReference
<PackageReference Include="Openfort.SDK" />
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);
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.