Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I am trying to build a new product to send bulk messages using WhatsAppApi.WhatsApp but I am getting an Error i.e. "Login Failed... Not authorized". I used the following code,
C#
WhatsAppApi.WhatsApp wa = new WhatsAppApi.WhatsApp("fromnumber", "mynumberpassword", "NickName", false, false);
                wa.OnConnectSuccess += () =>
                {
                    Console.WriteLine("Connected successfully");

                    wa.OnLoginSuccess += (phoneNumber, data) =>
                    {
                        wa.SendMessage("toNumber", "Test Message");
                        Console.WriteLine("Send Successfully");
                    };

                    wa.OnLoginFailed += (data) =>
                    {
                        Console.WriteLine("Login Failed " +data);
                    };
                    wa.Login();
                };
                wa.OnConnectFailed += (ex) =>
                    {
                        Console.WriteLine("Connection Failed");
                    };
                wa.Connect();
                Console.ReadLine();

Above MynumberPassword is Password which i generated from WART (whatsapp registration tool).
Using above c# code I can connect but I am not able to authorized. I don't have any idea, if you guys have please let me know.
Posted
Comments
Afzaal Ahmad Zeeshan 22-Jul-15 17:04pm    
There is no official WhatsApp API. Ask the author of this API, only he knows what he (or this code) is doing.
RAHUL(10217975) 22-Jul-15 17:19pm    
Ok, thanks.
I will ask the author.
Sujeet Bhujbal 26-Jul-15 14:09pm    
I am also getting same error .. not authorized error
Fajar Maulana 18-Mar-16 5:16am    
Sir.. help me
after extracting password from my android, i having problem, onlyone get succes login whatsapp from my vb.net. and next failed always not authorized..
Any ide or solution..

1 solution

same problem i am getting and dont know how i can short out

its really sh*t

 
Share this answer
 
Comments
pguillen 8-Oct-15 14:17pm    
I'm also getting the same problem.
Rakesh kumar Yadvanshi 5-Dec-15 10:32am    
actually I think the problem is whats up has removed that door for the developers.
Rakesh kumar Yadvanshi 5-Dec-15 10:33am    
i Think what has closed that door for developers
Fajar Maulana 18-Mar-16 5:18am    
Sir help me.. cant login whatsapp from vb.net, onlyone succes and next always failed not authorized

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