Program interface to Confluence wiki using Python and JSON
€12-18 EUR / hour
Completed
Posted almost 6 years ago
€12-18 EUR / hour
As an interface controller I want to upsert attachments to Confluence wiki.
Attachments are given by a json file describing each attachment and a file per attachment in the file system (like jpg files).
Use following wrapper for the Confluence REST API: PythonConfluenceAPI
Following functions are to be delivered:
def upsert_attachment(self, attm_new: {}, title_new: str, content_id: str) -> {}
The function attaches a file described in attm_new to a page given by content_id. Attm_new might look like {'name':'[login to view URL]','file_path':'file:/C:/tmp/[login to view URL]'}
Following rules apply:
Update existing attachment if name is same, create new attachment otherwise.