I would like to use a webhook for creating an entry in a guacamole database. Therefore I need a token for using the guacamole api getting it by authentificated with user and password. With curl it looks like this:
TOKEN=$(curl -s -k -X POST https://localhost/api/tokens -d 'username=admin&password=xxx' | jq -r .authToken)
This token can now be used in the header of a next curl command.
How can I do this with webhooks? Or must I use shellhooks for this case?
Kind regards