This API serves as a layer that simplifies communication between .NET and the server
You can access the documentation of the API at https://setup.auth.gg
- Step 1 : Login to your panel and create your application
- Step 2 : Your application secret will be next to your application name
- Step 3 : Copy your secret and store it somewhere
- Step 1 : Login to your panel hover over your avatar on the top right
- Step 2 : Click on
Account Settings
- Step 3 : Copy your AID and store it somewhere
Now that you have your AID
and Secret
use it to initialize and connect your application to our servers
OnProgramStart.Initialize("APPNAME", "AID", "PROGRAMSECRET", "VERSION");
OnProgramStart.Initialize("MyDemoApp", "269868", "t5d7rzzbrdAHmfWTGmuTUazjLIvWk", "1.0");
After a successful initialization, the server will send back the following information on your application based on the settings you have picked
ApplicationSettings.Name
: Application nameApplicationSettings.Status
: Application Enabled/DisabledApplicationSettings.DeveloperMode
: DeveloperMode Enabled/DisabledApplicationSettings.Hash
: Applications md5 hash to check integrityApplicationSettings.Version
: Applications versionApplicationSettings.UpdateLink
: Applications link that it updates from if version is updatedApplicationSettings.Freemode
: Freemode Enabled/DisabledApplicationSettings.Login
: Login Enabled/DisabledApplicationSettings.Register
: Login Enabled/DisabledApplicationSettings.TotalUsers
: Total users registered for application
if (API.Login(username, password))
{
//Code you want to do here on successful login
MessageBox.Show("You have successfully logged in!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
}
After a successful login, the server will send back the following information on your user
User.Username
: Users usernameUser.ID
: Users IDUser.Email
: Users emailUser.HWID
: Users hardware IDUser.IP
: Users IPUser.UserVariable
: Users variableUser.Rank
: Users rankUser.Expiry
: Users expiryUser.LastLogin
: Users last loginUser.RegisterDate
: Users registration dateUser.ProfilePicture
: Users profile picture link
if (API.Register(username, password, email, license))
{
//Code you want to do here on successful register
MessageBox.Show("You have successfully registered!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
}
if (API.ExtendSubscription(username, password, token))
{
MessageBox.Show("You have successfully extended your subscription!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
// Do code of what you want after successful extend here!
}
if(API.AIO(KEY))
{
//Code you want to do here on successful login
MessageBox.Show("Welcome back to my application!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Information);
Process.GetCurrentProcess().Kill(); // closes the application
}
else
{
//Code you want to do here on failed login
MessageBox.Show("Your key does not exist!", OnProgramStart.Name, MessageBoxButton.OK, MessageBoxImage.Error);
Process.GetCurrentProcess().Kill(); // closes the application
}
API.Log("USERNAMEHERE", "ACTION HERE");
API.UploadPic("USERNAMEHERE", @"C:\imagelocation.png");