I am creating a script in python that can gather data from an atlassian confluence wiki page through an http request using the curl command. The confluence website I am trying to access is maintained by my company's server. The command I am currently using is:
curl -v -w -u admin:admin "https://confluence.wdc.com/rest/api/content/494966598" | python -mjson.tool
In place of admin:admin I type my username which is my email then a colon and my password so for eg. email@example.com:thisispassword@ai I know that the link is correct as when I click "https://confluence.wdc.com/rest/api/content/494966598" it directly takes me to the page which gets displayed in a JSON format with all the information but when I try to enter that command in the terminal I get an error as the screenshot depicts:
I am thinking it might be due to the special characters like @ used in both email and password and so I used \@ to escape the character but it still shows the same error. Also I put quotes around the entire user credentials for e.g "firstname.lastname@example.org:thisispassword@ai" but still no success.
How should I securely authenticate to my company's confluence page through the terminal and eventually through my Python script?
Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events