From 2f51d91d0bcc29ed54ec5f6ad0b242f90a39e3ce Mon Sep 17 00:00:00 2001 From: allburov Date: Sat, 2 Jan 2021 01:01:54 +0700 Subject: [PATCH] fix readme --- README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 3bda4f47..fbb6df22 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,8 @@ docker pull allburov/whatsapp-http-api # First Steps -We are going to show how to use WhatsApp HTTP API. - -TODO: Add GIF here - ## Run and login + Run WhatsApp HTTP API: ```bash @@ -48,11 +45,6 @@ We will remember the session so there is no need to authenticate everytime. After that open in a browser the link and you'll see Swagger (OpenApi) API specification for WhatsApp HTTP API http://localhost:3000/#/ -## Get a screenshot - -Go to the "screenshot" section and get a screenshot http://localhost:3000/#/screenshot -![](./docs/screenshot.png) - ## Send a text message Let's try to send a message: @@ -63,6 +55,11 @@ export PHONE=79776772457 curl -d "{\"chatId\": \"${PHONE}@c.us\", \"text\": \"Hello from WhatsApp HTTP API Free\" }" -H "Content-Type: application/json" -X POST http://localhost:3000/api/sendText ``` +## Get a screenshot + +Go to the "screenshot" section and get a screenshot http://localhost:3000/#/screenshot +![](./docs/screenshot.png) + ## Echo To show how to receive messages we'll create a simple "echo" server with two functions: