Click here to Skip to main content
15,913,669 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have to get
Auth response error


What I have tried:

string from = "91xxxxxxxxxx";
string to = txtmobile.Text;//Sender Mobile
string msg = "Hello How are u??";//txtmessage.Text;

WhatsApp wa = new WhatsApp(from, "mypasword=", "myname", false,false);

wa.OnConnectSuccess += () =>
{
Response.Write("connect");

wa.OnLoginSuccess += (phoneNumber, data) =>
{
wa.SendMessage(to, msg);
Response.Write("Message Sent...");
};

wa.OnLoginFailed += (data) =>
{
Response.Write("login failed" + data);
};

wa.Login();
};

wa.OnConnectFailed += (ex) =>
{
Response.Write("connection failed");
};

wa.Connect();
Posted
Updated 3-Oct-16 17:57pm
Comments
Dil0500 26-Jul-16 2:18am    
Look into this may be it helps you
http://stackoverflow.com/questions/35071540/whatsapp-c-sharp-auth-response-error
kaushik ahir 26-Jul-16 2:28am    
but whatapp method have main five pramater

public WhatsApp(string phoneNum, string imei, string nick, bool debug = false, bool hidden = false);

in library

library said not required password it required imei number
kaushik ahir 26-Jul-16 3:34am    
at WhatsAppApi.WhatsSendBase.addAuthResponse() at WhatsAppApi.WhatsSendBase.Login(Byte[] nextChallenge) at Form1.<>c__DisplayClass4.b__0() in d:\kaushik\Projects\Demo\Whatapp\Form1.aspx.cs:line 72 at WhatsAppApi.WhatsEventBase.fireOnConnectSuccess() at WhatsAppApi.WhatsAppBase.Connect()
pishkari 5-Feb-18 5:32am    
Hi,
How can I have password?

1 solution

I'm also get the same error

When I try to debug by using break point, I found that was error at
WhatsSendBase.cs line 38 this.SendData(this.BinWriter.Write(auth, false));
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900