HTML5 Js WhatsApp Library#
You can find REST API documentation by url. The library is a wrapper for REST API, so the documentation at the above url applies to the library as well.
To send a message or to execute some other Green-API method, you have to have the WhatsApp account in the phone application to be authorized. To authorize your account please go to the personal area and scan a QR-code using the WhatsApp application.
Development environment unrolling#
- Clone the repository via
- Install dependencies via
- Globally install the
rolluplibrary for building.
- For webhooks add
expressas a new dependency via npm
- Create a
.envfile in the root directory and set the environment variables. The example of variables are in the env.example file
You can compile both browser and node/webpack versions of the library with one command
npm run build
Service methods documentation#
Licensed under MIT terms. Please see file LICENSE