Auth.GG
  • Welcome to Auth.GG!
  • C#
    • Initial Setup
    • Login
    • Register
    • Extend Subscription
    • User Information
    • Variables
    • Logs
  • Universal API
    • Application Information
    • Login
    • Register
    • Extend Subscription
    • Forgot Password
    • Change Password
    • Log
  • Admin API
    • Users
    • Licenses
    • HWID
  • FOR DEVELOPER
    • FAQ
Powered by GitBook
On this page

Was this helpful?

  1. C#

Extend Subscription

Redeeming a token will add to the users existing time. Tokens can only be redeemed once

C# Winforms
private void Button1_Click() { // Redeem token button event handler

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!
                }
}

C# CONSOLE
static void Main() {

 Console.WriteLine("Username:");
                string username = Console.ReadLine();
                Console.WriteLine("Password:");
                string password = Console.ReadLine();
                Console.WriteLine("Token:");
                string token = Console.ReadLine();
                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!
                }
                
PreviousRegisterNextUser Information

Last updated 5 years ago

Was this helpful?