fix readme
This commit is contained in:
1 parent
461aca454b
commit
2f51d91d0b
1 file changed
+6
-9
@@ -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
|
||||

|
||||
|
||||
## 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
|
||||

|
||||
|
||||
## Echo
|
||||
|
||||
To show how to receive messages we'll create a simple "echo" server with two functions:
|
||||
|
||||
Reference in new issue
Block a user