簡體   English   中英

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

[英]How get context Confluence using atlassian-python-api?

我想獲得上下文頁面融合,使用 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

根據示例,您可以使用get_page_by_titleget_page_by_id來獲取頁面內容。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM