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] new method confluence_download_attachments_from_page #1279

Closed gkowalc closed 6 months ago

gkowalc commented 6 months ago

Created new method Confluence "download_attachments_from_page". Method downloads attachments from given page id and saves them to the current directory (where the script is run) when using default path=None parameter.

It is possible to select other directory path by specifying absolute path. If custom directory doesn't exist or there is a permission error method should raise an error.

I run local tests on macos and linux hosts.

In addition to above, I also added relevant example usage and updated the docs.

gkowalc commented 6 months ago

hmm build has failed due to the: ERROR: flake8: commands failed ERROR: black: commands failed

is there any issue with cicd? My changes didn't touch dev dependencies like black/flake