Last post Mar 05, 2017 04:41 PM by Pantheas
Feb 03, 2017 11:49 AM|santiago17|LINK
I am developing an MVC ASP.Net application that needs to send messages to WhatsApp (WA).
I have tried to use the WhatsAppAPI for .NET but I have this issue: I can't connect to WA. The connection method parameters include my nr and WA password, but WA does not have a password set, since I setup WA with my Facebook account.
Is there any way of testing this API or knowing what value I must pass in order to be able to connect to WA within my controller?
public static void SendWhatsAppMessage(
string sResponse = "";
WhatsApp oWA = new WhatsApp("3519XXXXXX", "XXXXXXXX", "Test", true, false);
if (oWA.ConnectionStatus == ApiBase.CONNECTION_STATUS.CONNECTED)
//oWA.OnConnectSuccess += () =>
// sResponse = "Connect";
// oWA.OnLoginSuccess += (phno, data) =>
// oWA.SendMessage(sTo, sMessage);
// sResponse = "Success";
// oWA.OnLoginFailed += (data) =>
// sResponse = "login failed" + data;
//oWA.OnConnectFailed += (ex) =>
// sResponse = "connection failed";
Mar 05, 2017 04:41 PM|Pantheas|LINK
I am currently looking for a way to send WhatsApp messages from a webservice and found this tool.
WART @ C#-Corner
It looks like you are getting a password when the registration of your number is completed.
You could give it a try :)