@refactoring/whatsapp-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

WhatsApp Cloud API SDK

@refactoring-do/whatsapp-sdk

Dependencies-free WhatsApp Cloud API SDK for Node.js.

NPM Package Tests Linting and Formatting

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

Readme

Keywords

Package Sidebar

Install

npm i @refactoring/whatsapp-sdk

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

48.2 kB

Total Files

39

Last publish

Collaborators

  • marluanespiritusanto
  • jeffreyart1