2020-10-23 20:19:22 +07:00
2020-10-20 15:55:13 +07:00
2020-10-21 11:03:51 +07:00
2020-10-20 15:55:13 +07:00
2020-10-20 15:49:49 +07:00
2020-10-20 18:02:28 +07:00
2020-10-23 20:19:22 +07:00
2020-10-20 15:55:13 +07:00
2020-10-20 15:55:13 +07:00

WhatsApp HTTP API

WhatsApp HTTP API that you can configure in a click!

Quickstart

Environment variables

Common

  • DEBUG - show debug and verbose logs, set in any value
  • WHATSAPP_API_PORT - listen port for HTTP server (default: 3000)
  • WHATSAPP_API_HOSTNAME - Hostname for HTTP server (default: localhost)

Webhooks

https://github.com/orkestral/venom#events All webhooks are disabled by default.

  • WHATSAPP_HOOK_ONMESSAGE=http://localhost/uri
  • WHATSAPP_HOOK_ONSTATECHANGE=http://localhost/uri
  • WHATSAPP_HOOK_ONACK=http://localhost/uri
  • WHATSAPP_HOOK_ONADDEDTOGROUP=http://localhost/uri

File storage

  • WHATSAPP_FILES_FOLDER - folder where will be stored files from chats (images, voice messages)

Installation

docker pull ...

Development

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
S
Description
No description provided
Readme Apache-2.0
89 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 63.5%
JavaScript 31.5%
HTML 4.6%
Dockerfile 0.2%