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.
Download ghotz-csharp.zip and add GhotzAuth.cs to your project. Install NuGet Newtonsoft.Json.
using GhotzAuth;
var app = new GhotzApi("YOUR_APP", "YOUR_OWNERID", "1.0");
// API URL default: https://keyghotz.space/api/1.2/
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
}
Assets/Plugins/.init() in first scene before gameplay.