C# / .NET / Unity

Integrate Ghotz Auth into WinForms, WPF, or Unity using a C# SDK file and https://keyghotz.space/api/1.2/.

Already using KeyAuth? Keep Auth.cs / class api — only change url to Ghotz. Drop-in migration guide.

↓ Download C# SDK (ZIP) — includes GhotzAuth.cs + example.

1. Add SDK file

Download ghotz-csharp.zip and add GhotzAuth.cs to your project. Install NuGet Newtonsoft.Json.

2. Instance

using GhotzAuth;

var app = new GhotzApi("YOUR_APP", "YOUR_OWNERID", "1.0");
// API URL default: https://keyghotz.space/api/1.2/

3. Functions

app.Init();
if (!app.Response.Success) {
    MessageBox.Show(app.Response.Message);
    return;
}

// New user:
app.Register(user, pass, licenseKey, GhotzApi.Hwid());

// Returning:
app.Login(user, pass, GhotzApi.Hwid());

// Key only:
app.License(licenseKey, GhotzApi.Hwid());

if (app.Response.Success) {
    // Licensed — app.UserData.Subscriptions
}

4. Unity

C++ EXE → · Python →