atlassian-python-api
atlassian-python-api copied to clipboard
export_page is giving 404 error
Code :
confluence = Confluence( url= atlassian_url, username=username, password=api_token, api_version="cloud" )
content = confluence.get_page_as_pdf(page_id)
output_filename = "output.pdf"
with open(output_filename, "wb") as pdf_file:
pdf_file.write(content)
pdf_file.close()
Error:
Traceback (most recent call last):
File "/Users/xxxxx/iac/hackathon/confluence-export.py", line 24, in
When trying to access the url - https://xxx.atlassian.net/wiki/spaces/flyingpdf/pdfpageexport.action?pageId=791380304,
facing the following error:
Your request could not be processed because a required security token was not present in the request. You may need to re-submit the form or reload the page.