I am trying to set up a integration with a REST API, that requires a Base64 encoded key to authenticate, and I cannot seem to get it to work.
The API only returns:
<Code>-4</Code><Message>Not Authenticated</Message>
"Please provide a valid username and password"
My request looks like this:
curl -i
-H 'application/json'
-X GET
-H 'basic :Base64EncodedKey'
http://se.api.anpdm.com/v1/filter/all
No username should be supplied, thats why I use : before the key.
Can someone please try to help me? I am not a developer, I am just in charge of generating code examples.
/Max
curl -i -XGET --user username:password -H "Content-Type: application/json" "http://...."where you should replace username and password with its actual values