Skip to content

saurabhrai27/whatsapp-cloud-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whatsapp-cloud-api

Overview

This project implements WhatsApp Cloud APIs to send messages to recipients and receive messages from them. It provides functionality for integrating WhatsApp messaging capabilities into your application using WhatsApp cloud api's. Additionally, it can be used for building chatbots using WhatsApp.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/saurabhrai27/whatsapp-cloud-api.git
  2. Navigate to the project directory:

    cd whatsapp-cloud-api
  3. Install dependencies:

    npm install
  4. Set up environment variables:

    • Create a .env file in the root directory(take reference from sample.env).

    • Add the following environment variables to the .env file:

      LISTENER_PORT=your_application_port_number
      CLOUD_API_VERSION=whatsapp_current_api_version
      WA_PHONE_NUMBER_ID=your_whatsapp_phone_number_id
      RECIPIENT_WA_ID=your_recipient_whatsapp_id
      CLOUD_API_ACCESS_TOKEN=your_cloud_api_access_token
      WEBHOOK_VERIFICATION_TOKEN=your_webhook_verification_tocken
      

    Replace the above variables with your actual values.

Usage

To run the application, execute:

npm start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors