Posts tagged with whatsapi

I am setting up whatsapp business api developer setup following this link https://developers.facebook.com/docs/whatsapp/installation/dev-single-instance I have done everything as mentioned. Using the latest version of Whatsapp api i.e. v2.23.4 The docker containers are also running and I can see the login page of whatsapp business at https://localhost:9090 but the moment I try to check the health mentioned in the above link i.e https//localhost:9090/v1/health it gives me an error stating URL NOT FOUND like below {"meta":{"version":"v2.23.4","api_status":"stable"},"errors":[{"code":1006,"title":"Resource not found","details":"URL path not found"}]} What am I doing wrong here? I also have tried this with https://localhost:9090/v2/health but still same error.

What is a v1 in whatsapp business api. for instance, {{URL}}/v1/groups. And the URL, should it be "chat.whatsapp.com"?

I am trying to play with Whatsapp business api like sending messages through api to different whatsapp id's. As a newbie, I want to know what really is v1 in the api. Unfortunately, whatsapp documentation doesn't have much information right now.

As I need to send message on user's whatsapp number so I have downloaded WhatsApp API from nuget packages. and also I implemented code according to that. But after so many search I found that I need to register mobile number to get password...using WART but I think this application is not working and not able to get password from WhatsApp.

So if anyone implement this feature of sending message on whatsapp number in Asp.net c# then please update me how to do this using WhatsApp Api.. even I don't know whatsapp is provide any API or not.

I have tried with below code...but I need password before that..

            string fromMob = "919xxxxxxxxx";             string toMob = txtMobileNo.Text.Trim();             string msg = "This is first WhatsApp Message Whatsapp API";             WhatsApp wa = new WhatsApp(fromMob, "RequiredPassword", "SD", false, false);             try             {                 wa.OnConnectSuccess += () =>                 {                     wa.OnLoginSuccess += (phoneNumber, data) =>                     {                         wa.SendMessage(toMob, msg);                     };                     wa.OnLoginFailed += (data) =>                         {                             msg = "Login Failed" + data;                         };                 };                 wa.OnConnectFailed += (ex) =>                     {                         msg = "Connection Failed" + ex;                     };                 wa.Connect();             }             catch { }