Login

Make sure your application has been initialized before attempting to login.

App.Login's fields are (Username, Password, 2FA Code, CheckHWID, CheckIP);

If your account requires 2FA just include the code after the field password. Check HWID & Check IP both are just true or false if you set them both to true when the user logs in it will automatically compare & check their hwid & ip to the ones saved on our site and if they are different their app will close.

Winforms
private async void UserLogin(object sender, RoutedEventArg e)
{
var loginResponse = await App.Login(tbUsername.Text, tbPassword.Text, "", false, false);
if(loginResponse.Error == false)
{
// Successful login
MessageBox.Show(loginResponse.Message, "FusionAPI.dev");
}
else
{
// Failed login
MessageBox.Show(loginResponse.Message, "FusionAPI.dev");
}
}
Console
static async void Main(string[] args)
{
Console.Title = "FusionAPI.dev";
Console.Write("Enter your username: ");
string username = Console.ReadLine();
Console.Write("Enter your password: ");
string password = Console.ReadLine();
var loginResponse = await App.Login(username, password, "", false, false);
if(loginResponse.Error == false)
{
// Successful login
Console.WriteLine(loginResponse.Message);
}
else
{
// Failed login
Console.WriteLine(loginResponse.Message);
}
}