how to send whatsapp message using whats app api

By Junaid A   Posted on March-13-2023   263

Motivation

how to send whatsapp message using whats app api

 

To send a WhatsApp message using the WhatsApp API, you can follow these steps:

  1. Create a WhatsApp Business account: Before you can use the WhatsApp API, you need to create a WhatsApp Business account. You can sign up for a WhatsApp Business account on the WhatsApp Business website.
  2. Set up a WhatsApp Business API client: Once you have created a WhatsApp Business account, you will need to set up a WhatsApp Business API client. You can do this by either building your own client or by using a third-party provider that offers an API integration.
  3. Authenticate your WhatsApp Business API client: After setting up your WhatsApp Business API client, you will need to authenticate it. You can do this by obtaining a QR code from the WhatsApp Business API Dashboard and then scanning the code using your WhatsApp mobile app.
  4. Send a message: Once your WhatsApp Business API client is authenticated, you can send a message using the API. You will need to use the Send Message API endpoint, which will require you to provide the recipient's phone number (in international format) and the message text.

Here's an example of how you can send a WhatsApp message using the WhatsApp API:

 

 

import requests

 

url = "https://api.chat-api.com/instance{{YOUR_INSTANCE_ID}}/message?token={{YOUR_TOKEN}}"

 

data = {

    "phone": "{{RECIPIENT_PHONE_NUMBER_INTERNATIONAL_FORMAT}}",

    "body": "{{YOUR_MESSAGE_TEXT}}"

}

 

response = requests.post(url, json=data)

 

print(response.json())

 

 

 

or you can also send using web.whatsappp

 

https://api.whatsapp.com/send?phone=923239084282&text=Good

 

 

send message using whatsapp

send message using whatsapp free api call

Quotation by Hurbert hoover
By Junaid A    13-Mar-2023 Views  263



You may also read following recent articles

What is website In Urdu