atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

confluence.download_attachments_from_page is missing

Open git-aybo opened this issue 2 years ago • 2 comments

Hi the method confluence.download_attachments_from_page(page_id, download_path=None) is mentioned in the documentation https://atlassian-python-api.readthedocs.io/confluence.html, but they is missing in the current code version 3.41.4. In which build is it released?

Thank you for your replay and with regards Andreas

git-aybo avatar Jan 15 '24 14:01 git-aybo

Found here: https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/confluence.py#L1299

zbika73 avatar Jan 16 '24 15:01 zbika73

Hi zbika73 Thank you for your reply. Your reference to the code points to the master branch. The methode is missing in the 3.41.4 tagged version, the current version of pip:

import os from atlassian import Confluence from importlib.metadata import version version("atlassian_python_api") '3.41.4'

confluence = Confluence(url=os.getenv("URL", None),username=os.getenv("CONFLUENCE_USER", None),password=os.getenv("CONFLUENCE_PASSWORD", None)) confluence.download_attachments_from_page(page_id=123, download_path="/tmp") Traceback (most recent call last): File "", line 1, in AttributeError: 'Confluence' object has no attribute 'download_attachments_from_page'

With regards Andreas

git-aybo avatar Jan 17 '24 07:01 git-aybo