I'm using the last nuget version for whatsapp: WhastApp API 1.2.2 and reading tutorials about configure my whatsapp in my application. I'm using my localhost to test and my code is:
string from = "503XXXX";
string to = "503XXXX";
string msg = "lorem ipsum";
WhatsApp wa = new WhatsApp(from, "jd8eY3FXXXXXXXXXXXXXXXXXXX", "MrMins", true);
wa.OnConnectSuccess += () =>
{
wa.OnLoginSuccess += (phoneNumber, data) =>
{
wa.SendMessage(to, msg);
};
};
wa.OnLoginFailed += (data) =>
{
//Fail message
};
wa.Login();
wa.OnConnectFailed += (ex) =>
{
//ConnectionFailed
};
wa.Connect();
wa.SendMessage(to, msg);
wa.Disconnect();
I'm getting the error:
Auth response error
I updated my whatsapp password with WART and logged me out from my whatsapp mobile (I think is the correct behavior), but is still not working.
What is wrong with my codes?