Api post not working RRS feed

  • Question

  • User-588203678 posted


    I am calling whatspp api using post method . I pass json string as below

    HttpClient cl = new HttpClient("https://aspi.whatsapp.com");
    Json String 
    "phone" :9199458224XX,
     "text" :"Hello Gujarat";

    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. 

    Friday, June 19, 2020 2:59 AM

All replies

  • User-474980206 posted

    To send a WhatsApp message, you need to use the business api


    The only option available without an account, is the click to open chat page


    this is a link you put on your page, that navigates to the WhatsApp site.

    Friday, June 19, 2020 3:41 PM
  • User-588203678 posted

    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

    Json string 
    phone: "919945822XXX",
    text:"I am interested in your car sales"

    I want the message to be delivered in my whatspp number - "919945822XXX"

    Saturday, June 20, 2020 9:47 AM
  • User-474980206 posted

    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.

    Sunday, June 21, 2020 12:05 AM