MedAziz11/Uptime-Kuma-Web-API

Curl example script (POST) not working

pigate-eu opened this issue · 1 comments

Hi,

I try the curl example script:

===
TOKEN=$(curl -X -L 'POST' -H 'Content-Type: application/x-www-form-urlencoded' --data 'username=admin&password=admin' http://127.0.0.1:8000/login/access-token/ | jq -r ".access_token")

curl -L -H 'Accept: application/json' -H "Authorization: Bearer ${TOKEN}" http://127.0.0.1:8000/monitors/

===

but curl do nothing.
image

I replace only the port and password for Kuma API. Any suggestion?