open-wa / wa-automate-docker

💬 🤖 The easiest way to turn your WhatsApp into an API. Be sure to 🌟 this repository for updates!
106 stars 31 forks source link

curl command example #13

Closed the-jojo-jj closed 3 years ago

the-jojo-jj commented 3 years ago

Hi, can somebody help with curl command example to send message? thanks in advance.

smashah commented 3 years ago

@the-jojo-jj if you open the /api-docs/ endpoint in a browser,

image

You can explore all the functions

image

and try them out

image

edit the args, then hit execute

image

It will then show you the curl command used to make the request

image

the-jojo-jj commented 3 years ago

Thanks @smashah for your reply.

this is my curl:

wget --no-check-certificate --quiet \ --method POST \ --timeout=0 \ --header 'api_key: 4638ae9e1axxxxxxxxxx' \ 'https://api.xxxxx.xx/xx/xx/xxxxxx/sendText?to=4474472xxxxx@c.us'

and got:

{ "success": true, "response": "Message missing" }

please help. thanks.

the-jojo-jj commented 3 years ago

I'm sorry. I was wrong.