如何使用atlassian-python-api获取上下文Confluence?

问题描述 投票:0回答:1

我想得到上下文页面汇合,使用python模块atlassian-python-api

https://github.com/AstroTech/atlassian-python-api

找到了如何创建新页面的示例

from atlassian import Confluence

confluence = Confluence(
    url='http://localhost:8090',
    username='admin',
    password='admin')

status = confluence.create_page(
    space='DEMO',
    title='This is the title',
    body='This is the body. You can use <strong>HTML tags</strong>!')

print(status)

如何获取上下文,这个页面的例子http://conf01:8080/pages/viewpage.action?pageId=111113

python confluence confluence-rest-api
1个回答
0
投票

根据example,您可以使用get_page_by_titleget_page_by_id获取页面内容。

© www.soinside.com 2019 - 2024. All rights reserved.