I am trying to make a REST API call to know who is on duty. Every time I run this command I get 401 status saying, unauthorized user. I can login successfully using the Xmatters Web Interface. Here is the API call I am making
curl -H "Content-Type: application/json" --user username "https://xxx.hosted.xmatters.com/api/xm/1/groups/groupId/calendar"
Where am I going wrong?
I don't know what's wrong with your command, maybe you missed the GET or you do not need the header.
But this here should work
A base64 string can be generated like this:
I would recommend a tool like DHC (Chrome Extension) to test your URLs. You can also generate curl commands.