{"id":15306674,"url":"https://github.com/t0mer/greenapi-whatsapp-library","last_synced_at":"2026-04-05T21:32:57.077Z","repository":{"id":232007378,"uuid":"783226579","full_name":"t0mer/GreenApi-WhatsApp-Library","owner":"t0mer","description":"Send WhatsApp messages from your Arduino projects using Green-API","archived":false,"fork":false,"pushed_at":"2024-04-08T06:13:04.000Z","size":717,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T18:43:17.845Z","etag":null,"topics":["arduino","embedded","esp32","esp8266","green-api","internet-of-things","iot","messaging","whatsapp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t0mer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-07T09:42:10.000Z","updated_at":"2024-04-07T10:13:51.000Z","dependencies_parsed_at":"2024-04-07T11:25:06.742Z","dependency_job_id":"3e51127d-9ef6-4d28-ba1d-0b98176bf7c3","html_url":"https://github.com/t0mer/GreenApi-WhatsApp-Library","commit_stats":null,"previous_names":["t0mer/greenapi-whatsapp-library"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FGreenApi-WhatsApp-Library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FGreenApi-WhatsApp-Library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FGreenApi-WhatsApp-Library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t0mer%2FGreenApi-WhatsApp-Library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t0mer","download_url":"https://codeload.github.com/t0mer/GreenApi-WhatsApp-Library/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245862775,"owners_count":20684735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","embedded","esp32","esp8266","green-api","internet-of-things","iot","messaging","whatsapp"],"created_at":"2024-10-01T08:06:48.077Z","updated_at":"2025-12-30T23:22:53.391Z","avatar_url":"https://github.com/t0mer.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GreenApi Arduino Library\n\nThe GreenApi Arduino Library allows you to easily send WhatsApp messages from your Arduino projects using the Green-API service. This library simplifies the process of integrating WhatsApp messaging capabilities into your Arduino sketches.\n\n## Introduction\n\nThe GreenApi library provides a simple interface to interact with the Green-API service for sending WhatsApp messages. It abstracts away the complexities of HTTP requests and JSON formatting, allowing you to focus on your project's functionality.\n\n\n## Getting started\n\n### Setup Green API account\nNevigate to [https://green-api.com/en](https://green-api.com/en) and register for a new account:\n![Register](screenshots/register.png)\n\nFill up your details and click on **Register**:\n![Create Account](screenshots/create_acoount.png)\n\n\nNext, click on the \"Create an instance\":\n![Create Instance](screenshots/create_instance.png)\n\n\nSelect the \"Developer\" instance (Free):\n![Developer Instance](screenshots/developer_instance.png)\n\n\nCopy the InstanceId and Token, we need it for the integration settings:\n![Instance Details](screenshots/instance_details.png)\n\nNext, Lets connect our whatsapp with green-api. On the left side, Under API --\u003e Account, click on QR and copy the QR URL to the browser and click on \"Scan QR code\"\n\n![Send QR](screenshots/send_qr.png)\n\n![Scan QR](screenshots/scan_qr.png)\n\nNext, Scan the QR code to link you whatsapp with Green API:\n\n![QR Code](screenshots/qr.png)\n\nAfter the account link, you will notice that the instance is active by the green light in the instance header:\n![Active Instance](screenshots/active_instance.png)\n\n\n\n### Getting the Contacts and Groups\nBefore we can start messaging, we need to get the Contact/Group details. we can do it using Green API endpoint.\nOn the lef side, Under API --\u003e Service methods, click on \"getContacts\" and then click \"Send\":\n![Get Contacts](screenshots/get_contacts.png)\n\nAs a result, you will get the list of Contacts and Groups.\n* The contact number ends with **@c.us**\n* The group number ends with **@g.us**\n\n![Contacts Lists](screenshots/contacts_list.png)\n\nWrite down the Id, you will need it to configure the notification.\n\n\n## Installing the library\n\nTo use the GreenApi library in your Arduino projects, follow these steps:\n\n1. Download the latest release of the GreenApi library from the [GitHub releases page](https://github.com/t0mer/GreenApi-WhatsApp-Library/releases).\n2. Extract the downloaded ZIP file.\n3. Move the extracted folder to the `libraries` directory in your Arduino sketchbook.\n4. Restart the Arduino IDE.\n\n## Usage\n\nHere's a simple example sketch demonstrating how to use the GreenApi library to send a WhatsApp message:\n\n```cpp\n#include \u003cArduino.h\u003e\n#include \u003cWiFi.h\u003e // Include WiFi library if connecting to WiFi\n#include \u003cGreenApi.h\u003e\n\nconst char* ssid = \"YourWiFiSSID\";\nconst char* password = \"YourWiFiPassword\";\nconst char* instanceId = \"YourInstanceId\";\nconst char* instanceToken = \"YourInstanceToken\";\nconst char* target = \"YourChatId\";\nconst char* message = \"Hello, this is a test message from my new library!\";\n\n// Create an instance of the GreenApi class\nGreenApi greenApi(instanceId, instanceToken);\n\nvoid setup() {\n  Serial.begin(115200);\n  delay(1000);\n\n  // Connect to Wi-Fi (if needed)\n  Serial.println(\"Connecting to Wi-Fi...\");\n  WiFi.begin(ssid, password);\n  while (WiFi.status() != WL_CONNECTED) {\n    delay(500);\n    Serial.print(\".\");\n  }\n  Serial.println(\"\\nConnected to Wi-Fi!\");\n\n  // Send message using GreenApi\n  Serial.println(\"Sending message...\");\n  greenApi.sendMessage(target, message);\n}\n\nvoid loop() {\n  // Your code here\n}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft0mer%2Fgreenapi-whatsapp-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft0mer%2Fgreenapi-whatsapp-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft0mer%2Fgreenapi-whatsapp-library/lists"}