Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions atlassian/confluence.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,24 @@ def page_exists(self, space, title):
log.info('Page "{title}" does not exist in space "{space}"'.format(space=space, title=title))
return False

def get_page_child_by_type(self, page_id, type="page", start=None, limit=None):
def get_page_child_by_type(self, page_id, type="page", start=None, limit=None, expand=None):
"""
Provide content by type (page, blog, comment)
:param page_id: A string containing the id of the type content container.
:param type:
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
:param limit: OPTIONAL: how many items should be returned after the start index. Default: Site limit 200.
:param expand: OPTIONAL: expand e.g. history
:return:
"""
params = {}
if start is not None:
params["start"] = int(start)
if limit is not None:
params["limit"] = int(limit)

if expand is not None:
params["expand"] = expand

url = "rest/api/content/{page_id}/child/{type}".format(page_id=page_id, type=type)
log.info(url)

Expand Down