Skip to content

C++ WhatsApp Library#

license release

C++ WhatsApp library for integration with WhatsApp through green-api.com API service. To use the library, it is required to get an authentication token and instance ID in the console. There is a free developer plan.

API#

REST API documentation is available by link. The library is a wrapper for REST API, so the documentation at the above url applies to the library as well.

Authorization#

To send a message or to execute some other Green-API method, it is required for your instance to be authorized. To authorize your instance go to the console and scan the QR-code using the Whatsapp application.

Building and installation#

The Green-API library uses the C++ 17 standard. You will need the gcc compiler or Visual Studio 2019/2022 to build it. After downloading the repository library, install everything you need depending on your OS. The library is configured through the config.hpp configuration file. Build the library in a way you prefer, for example, using the Cmake or MSVC utility. After that, connect the library to your project. Read more in Building and installation.

Examples of using#

Examples of all library methods with all parameters can be found in the examples folder.

Service methods documentation#

License#

Licensed under Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0).

Please see file LICENSE.