I generated an API token for the server, and tried to use cURL to access it, but I'm not able to get it to work.
The command that I am running is
- Code: Select all
curl -H "Authorization: Bearer $INDIGO_TOKEN" https://my-reflector.indigodomo.net/devices.json
HTTP Basic authentication isn't working either (http://user:pass@my-reflector.indigodomo.net), but using digest I was able to get it to work. However, I would much prefer being able to use the API key, as that's best practices for API access and I also don't want to store the plaintext username & password on my computer & smart home server.
Is there something I need to do to enable access with the API token? I tried rebooting the server after generating the key, but nothing changed.
Thanks!