I was looking for a simple API for sending WhatsApp messages to a group of programmers at Secured Globe, Inc. There are several service providers and we have chosen one of them (WhatsAppMate) and started a free trial. However, their code samples for using their services are in almost any programming language except for c++. So we wrote our own c++ class for that purpose.
Background WhatsApp is a multi-platform free service for chatting via video or voice and for sending messages to individuals or groups, including files, media, etc. WhatsApp is better than the old SMS because it is free and has more features. During our day to day work, we need to set up all sort of alerts to be sent to a group who share a job or work on a feature and when that's done automatically, it makes life easier to be notified.Here is a sample demo
Using the code There are several types of messages that can be sent, including individual or group messages and with or without a photo or PDF file attached to them. You can read about it in this page. Here are the building blocks you need to have. Alternatively, I will later attach a compiled (.exe) test application.
// #define GroupAdmin <YOUR GROUP ADMIN MOBILE PHONE> #define GroupName <YOUR GROUP NAME> #define CLIENT_ID <YOUR CLIENT ID> #define CLIENT_SECRET <YOUR CLIENT SECRET>