I want to write Http post by passing the url like this https://aspi.whatsapp.com/send?phone=9199458224XX&text=Hello%20GujaratBy post method end-user will receive whatsapp message I think.
Now you talking about screen scraping.
your webclient does the same get. The response will be the html you see. Presumably the page has a form. You will post back the form values. You probably will need authentication ,and and include the cookie with the form post.
any the easiest way to reverse engineer, is to use fiddler to trace the network requests. Determine how the gets work, and what the form posts are. Then you can duplicate.
Member
2 Points
177 Posts
Api post not working
Jun 19, 2020 02:59 AM|guhananth1|LINK
Hi
I am calling whatspp api using post method . I pass json string as below
I want to write Http post by passing the url like this https://aspi.whatsapp.com/send?phone=9199458224XX&text=Hello%20GujaratBy post method end-user will receive whatsapp message I think.
All-Star
58254 Points
15674 Posts
Re: Api post not working
Jun 19, 2020 03:41 PM|bruce (sqlwork.com)|LINK
To send a WhatsApp message, you need to use the business api
https://developers.facebook.com/docs/whatsapp/getting-started/
The only option available without an account, is the click to open chat page
https://faq.whatsapp.com/general/chats/how-to-use-click-to-chat/
this is a link you put on your page, that navigates to the WhatsApp site.
Member
2 Points
177 Posts
Re: Api post not working
Jun 20, 2020 09:47 AM|guhananth1|LINK
Bruce ,
In browser if i type https://wa.me/9199458224XX?text=I%27m%20interested%20in%20your%20car%20for%20sale it navigates to whatspp page
if i send the same request throught HttpsClient using post method how to pass the values as query string . Input is json string like the below
I want the message to be delivered in my whatspp number - "919945822XXX"
All-Star
58254 Points
15674 Posts
Re: Api post not working
Jun 21, 2020 12:05 AM|bruce (sqlwork.com)|LINK
Now you talking about screen scraping.
your webclient does the same get. The response will be the html you see. Presumably the page has a form. You will post back the form values. You probably will need authentication ,and and include the cookie with the form post.
any the easiest way to reverse engineer, is to use fiddler to trace the network requests. Determine how the gets work, and what the form posts are. Then you can duplicate.