1.0.1 • Published 2 years ago

@refactoring/whatsapp-sdk v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

WhatsApp Cloud API 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

1.0.1

2 years ago