https://github.com/mrprkr/node-whatsapp
Node library for interacting with WhatsApp for Business Cloud API
https://github.com/mrprkr/node-whatsapp
nodejs typescript whatsapp whatsapp-api
Last synced: about 2 months ago
JSON representation
Node library for interacting with WhatsApp for Business Cloud API
- Host: GitHub
- URL: https://github.com/mrprkr/node-whatsapp
- Owner: mrprkr
- Created: 2022-06-29T07:59:42.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-29T08:12:27.000Z (almost 3 years ago)
- Last Synced: 2025-02-19T11:49:02.487Z (2 months ago)
- Topics: nodejs, typescript, whatsapp, whatsapp-api
- Language: TypeScript
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-whatsapp Alpha
Node library for interacting with whatsapp business API
Not all endpoints are working/added### Getting started
```
// Create a new WABA client and initialise it with your fb/meta credentialsconst client = new WABAClient({
wabaBusinessId: process.env.WABA_BUSINESS_ID,
apiKey: process.env.API_KEY,
phoneNumberId: process.env.PHONE_NUMBER_ID, // if ommitted the first number on the account will be used
});
```### Usage
Interact with the whatsapp API using the client, for example:`const templates = await client.getTemplates()`
`const message = await client.sendTextMessage(options)`See Examples folder for more details