atlassian-api / atlassian-python-api

Atlassian Python REST API wrapper
https://atlassian-python-api.readthedocs.io
Apache License 2.0
1.29k stars 642 forks source link

confluence.download_attachments_from_page is missing #1294

Open git-aybo opened 5 months ago

git-aybo commented 5 months ago

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

zbika73 commented 5 months ago

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

git-aybo commented 5 months ago

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