Skip to content

Commit e18f91d

Browse files
Gonchik TsymzhitovGonchik Tsymzhitov
authored andcommitted
Add export as work method
1 parent a1170d7 commit e18f91d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

atlassian/confluence.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,16 @@ def get_page_as_pdf(self, page_id):
10031003

10041004
return self.get(url, headers=headers, not_json_response=True)
10051005

1006+
def get_page_as_word(self, page_id):
1007+
"""
1008+
Export page as standard word exporter.
1009+
:param page_id: Page ID
1010+
:return: Word File
1011+
"""
1012+
headers = self.form_token_headers
1013+
url = 'exportword?pageId={pageId}'.format(pageId=page_id)
1014+
return self.get(url, headers=headers, not_json_response=True)
1015+
10061016
def export_page(self, page_id):
10071017
"""
10081018
Alias method for export page as pdf

0 commit comments

Comments
 (0)