nextjs-whatsapp-cloud-api
v0.1.1
Published
Package to use the WhatsApp Cloud API in NodeJS, with especial focus to NextJS API Routes
Downloads
9
Readme
nextjs-whatsapp-cloud-api
This is a NodeJS package designed to work with the WhatsApp Cloud API, with a special focus on NextJS API Routes.
Installation
You can install the package using npm or pnpm:
npm install nextjs-whatsapp-cloud-api
or
pnpm install nextjs-whatsapp-cloud-api
Usage
const whatsappAPI = require('nextjs-whatsapp-cloud-api');
// Use whatsappAPI functions... This package uses the following environment variables:
- PHONE_ID: Your WhatsApp phone number ID.
- ACCESS_TOKEN: Your WhatsApp API access token. Make sure to provide these environment variables when using the package.
Contributing
We welcome contributions to this package. Feel free to open issues or submit pull requests.
License
This project is licensed under the MIT License. See the LICENSE file for more details.
As for the license, the MIT License is a widely used, permissive open source license. It allows others to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, under the condition that the license and copyright notice must be included in all copies or substantial portions of the software.