2017-11-16 29 views
0

나는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) 

, 예를 작성하는 예를 발견 컨텍스트 페이지 합류, 사용 파이썬 모듈 골드 피처 - 파이썬 API를 얻으려면 http://conf01:8080/pages/viewpage.action?pageId=111113 ?

+0

예제 폴더를 확인 했습니까? https://github.com/AstroTech/atlassian-python-api/blob/master/examples/confluence-page-get.py –

+0

예제 폴더를 선택 했으므로 이미 찾았습니다. 대답을 적어주세요. –

답변

0

example에 따르면 페이지 콘텐츠를 가져 오는 데 get_page_by_title 또는 get_page_by_id을 사용할 수 있습니다.