Skip to content

Commit 305f27b

Browse files
committed
First commit for [branch ch41086]
1 parent c51d8ae commit 305f27b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dataikuapi/dss/wiki.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ def upload_attachement(self, fp, filename):
237237

238238
self.client._perform_json("POST", "/projects/%s/wiki/%s/upload" % (self.project_key, dku_quote_fn(self.article_id)), files={"file":(clean_filename, fp)})
239239

240+
def get_uploaded_file(self, filename, upload_id):
241+
""""
242+
Download the attachement of an article
243+
244+
:param str filename: The attachement filename
245+
:param str upload_id: The attachement upload id
246+
:returns: The requests.Response object
247+
:rtype: :class:`requests.Response`
248+
"""
249+
return self.client._perform_raw("GET", "/projects/%s/wiki/get-uploaded-file/%s?projectKey=%s&uploadId=%s" % (self.project_key, filename, self.project_key, upload_id))
250+
240251
def delete(self):
241252
"""
242253
Delete the article

0 commit comments

Comments
 (0)