Skip to content
/ waapi Public

Simple whatsapp api using bailey. Support multi session

License

Notifications You must be signed in to change notification settings

mugh/waapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it is

A very simple Node js script for whatsapp api using bailey, support multi session.

Changelog 22-8-2024

  1. The script now saving to mongodb, edit mongodb_uri via .env.
  2. fixing error handling of bad webhook url and session deletion

Changelog 2-8-2024

  1. The script now following restful API.
  2. The socket will be close after one minutes no qr scan and shall be re-start-ed to be able to scan new QR.
  3. The apikey management now have another apikey protection called system api key. it will be generated the first time script start and saved in system_api_key.json
  4. openapi documentation now avalilable to be use with postman or swagger
  5. adding ratelimiter for api call

Installation

donwload or clone the files. run yarn, edit .env specified correct mongodb_uri and then node app.js the server will run in port 3000. To change port simply edit app.js change const port = 3000 to something else

API

use openapi.json in postman or swagger to see all available endpoint

Example

see waapi.php for complete php function of all API endpoint.

About

Simple whatsapp api using bailey. Support multi session

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published