Skip to content

This is a full implementation of official WhatsApp Cloud API

License

Notifications You must be signed in to change notification settings

thEpisode/whatsapp-cloud-api.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Style Guide GitHub license npm

JavaScript Style Guide

whatsapp-cloud-api.js

This is a full implementation of official WhatsApp Cloud API

Installation

The module is now available on npm!

npm i --save whatsapp-web.js

Example usage

const { WhatsAppCloudApi } = require('whatsapp-web.js');

const wAPI = new WhatsAppCloudApi({
  appToken: 'xxxxxx'
});

wAPI.sendMessage({
  type:'text',
  to: {
    phoneNumber: '1xxxxx'
  },
  from: {
    phoneNumberId: 'xxxxx'
  },
  message:{
    body: 'Hello World'
  }
})

Supported features

Feature Status
Send text messages

Something missing? Make an issue and let us know!

Contributing

Pull requests are welcome! If you want something you'd like to add, please do. For drastic changes, please open an issue first.

Disclaimer

This project is not affiliated, associated, authorized, endorsed by, or in any way officially connected with WhatsApp or any of its subsidiaries or its affiliates. The official WhatsApp website can be found at https://whatsapp.com and official documentation for Meta can be found at https://developers.facebook.com/docs/whatsapp/cloud-api. "WhatsApp" as well as related names, marks, emblems and images are registered trademarks of their respective owners.

About

This is a full implementation of official WhatsApp Cloud API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published