@refactoring/whatsapp-sdk
v1.0.1
Published
WhatsApp Cloud API SDK for Node.js
Downloads
2
Readme
WhatsApp Cloud API SDK
Dependencies-free WhatsApp Cloud API SDK for Node.js.
Getting Started
Ready to send WhatsApp messages? Prepare to do it as efficiently and simply as possible.
Installation
Install from NPM
npm install @refactoring/whatsapp-sdk
Usage example
import { Client } from "@refactoring/whatsapp-sdk";
(async () => {
const client = new Client({
accessToken: 'Introduce here your bearer token',
cloudApiVersion: 'v15.0',
phoneNumberId: 000000000000000,
});
await client.sendText({ body: 'Hello world from Mars!' }, '10000000000');
})();
Credits
This package has been inspired by the official WhatsApp Cloud API for Node.js. A few improvements and facilities have been added.
Made with ❤️ by Refactoring, SRL