whatapp api代码中的验证响应错误 [英] Auth response error in whatapp api code
问题描述
我必须得到
Auth response error
我尝试过:
string from =91xxxxxxxxxx;
string to = txtmobile.Text; // Sender Mobile
string msg =你好,怎么样?; // txtmessage.Text;
WhatsApp wa = new WhatsApp(from,mypasword =,myname ,假,假);
wa.OnConnectSuccess + =()=>
{
Response.Write(connect);
wa.OnLoginSuccess + =(phoneNumber,data)=>
{
wa.SendMessage(to,msg);
Response.Write(Message Sent ...);
};
wa.OnLoginFailed + =(data)=>
{
Response.Write(登录失败+数据) ;
};
wa.Login();
};
wa.OnConnectFailed + =(ex)=>
{
Response.Write(连接失败);
};
wa.Connect();
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();
推荐答案
我也得到同样的错误
当我尝试使用断点进行调试时,我发现那是错误
WhatsSendBase.cs第38行this.SendData(this.BinWriter.Write(auth,false));
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));
这篇关于whatapp api代码中的验证响应错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!