TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Thamizh Arasan
NA
8
14.8k
whatsapp Api login failed
Aug 26 2015 11:27 AM
Hello friends:
when i'm trying to send a message using c# with whatsApp API ,it shows login Failed. The error is not-authorized.
Can you please help anyone .
Below my code :
private void button1_Click(object sender, EventArgs e)
{
string from = "mymobileno";
string TO = textBox1.Text;
string Message = textBox2.Text;
WhatsApp wa = new WhatsApp(from, "********", "Thamizh", false, false);
wa.OnConnectSuccess +=()=>
{
MessageBox.Show("Connected to Whatsapp");
wa.OnLoginSuccess += (PhoneNumber, data) =>
{
wa.SendMessage(TO, Message);
MessageBox.Show("Message send successfully");
};
wa.OnLoginFailed += (data) =>
{
MessageBox.Show("LoginFailed :{0}", data);
};
wa.Login();
};
wa.OnConnectFailed += (ex) =>
{
MessageBox.Show("Connection Failed");
};
wa.Connect();
}
Reply
Answers (
7
)
start up object
how to use class to build question and answer game