Node.js SDK for WhatsApp Business Platform APIs
An unofficial SDK for Meta's WhatsApp Business Messaging APIs - Cloud API.
Getting started
import CloudAPI from "@great-detail/whatsapp";
const sdk = new CloudAPI({ businessID });
const message = sdk.message.text({ body: "Hello" }, { toNumber: "1234567890" });
const sendReceipt = await message.send();
Installation
Install the WhatsApp Business Platform SDK:
yarn add @great-detail/WhatsApp-Nodejs-SDK
npm install @great-detail/WhatsApp-Nodejs-SDK
pnpm add @great-detail/WhatsApp-Nodejs-SDK
Configuration
Compatibility
This SDK is designed to be compatible with the Cloud API API.
SDK Version | Cloud API Versions |
---|
TODO | v18 |
Whilst the SDK may work with alternative versions of the Graph API, it is
designed to work with the above. If you find any compatibility issues, please
report them via
GitHub Issues.
Code of Conduct
Meta has adopted a Code of Conduct that we expect project participants to adhere
to. Please read the full text so that you can understand what actions will and
will not be tolerated.
Contribute
See the CONTRIBUTING file for our development process, how to
propose bugfixes and improvements, and how to build and test your changes to the
WhatsApp Business Platform Node.js SDK.
License
The WhatsApp Business Platform Node.js SDK for the Cloud API is Meta Platforms
licensed, as found in the LICENSE file.