@@ -492,7 +492,7 @@ def get_all_pages_by_label(self, label, start=0, limit=50):
492492
493493 return response .get ("results" )
494494
495- def get_all_pages_from_space (
495+ def get_all_pages_from_space_raw (
496496 self ,
497497 space ,
498498 start = 0 ,
@@ -545,6 +545,35 @@ def get_all_pages_from_space(
545545
546546 return response
547547
548+ def get_all_pages_from_space (
549+ self ,
550+ space ,
551+ start = 0 ,
552+ limit = 50 ,
553+ status = None ,
554+ expand = None ,
555+ content_type = "page" ,
556+ ):
557+ """
558+ Get all pages from space
559+
560+ :param space:
561+ :param start: OPTIONAL: The start point of the collection to return. Default: None (0).
562+ :param limit: OPTIONAL: The limit of the number of pages to return, this may be restricted by
563+ fixed system limits. Default: 50
564+ :param status: OPTIONAL: list of statuses the content to be found is in.
565+ Defaults to current is not specified.
566+ If set to 'any', content in 'current' and 'trashed' status will be fetched.
567+ Does not support 'historical' status for now.
568+ :param expand: OPTIONAL: a comma separated list of properties to expand on the content.
569+ Default value: history,space,version.
570+ :param content_type: the content type to return. Default value: page. Valid values: page, blogpost.
571+ :return:
572+ """
573+ return self .get_all_pages_from_space_raw (
574+ space = space , start = start , limit = limit , status = status , expand = expand , content_type = content_type
575+ ).get ("results" )
576+
548577 def get_all_pages_from_space_trash (self , space , start = 0 , limit = 500 , status = "trashed" , content_type = "page" ):
549578 """
550579 Get list of pages from trash
0 commit comments