diff --git a/examples/confluence/confluence_download_attachments_from_page.py b/examples/confluence/confluence_download_attachments_from_page.py index 116fb2303..903eeb367 100644 --- a/examples/confluence/confluence_download_attachments_from_page.py +++ b/examples/confluence/confluence_download_attachments_from_page.py @@ -1,6 +1,7 @@ from atlassian import Confluence import os -host="" + +host = "" username = "" password = "" confluence = Confluence( @@ -13,8 +14,8 @@ # In this example we use current working directory where script is executed + subdirectory 'attachment_tests' current_dir = os.getcwd() -my_path = current_dir + '/attachment_tests' -page = 393464 # make sure the page id exists and has attachments +my_path = current_dir + "/attachment_tests" +page = 393464 # make sure the page id exists and has attachments confluence.download_attachments_from_page(page) # Directory 'attachment_tests' should include saved attachment. If directory deosn't exist or if there is permission issue function should raise an error.