This is a projekt wich i used to get data of a machine using a webserver
python informer.py --port PORT --host HOST
--port
and --host
is not needed
{
"tokens": [
"TOKEN",
"TOKEN2"
]
}
The tokens need to be given in the authorization header in a request.
curl -H "Authorization: TOKEN" http://HOST:PORT/sys/info/all