list page per space: parsing json response


Very good site json formatting :  https://jsoneditoronline.org/




code
   url2 = urlbase+dicthomepage[spacekey]+"/descendant"
   #url2 = urlbase+dicthomepage[spacekey]+"/child/page"
   print (url2)
   #print ( "done")

   # call one page at the time
   headers = {
      "Accept": "application/json"
   }
   response2 = requests.request(
      "GET",
      url2,
      headers=headers,
      auth=auth,
      verify=False
   )
code
   url2 = urlbase+dicthomepage[spacekey]+"/descendant/?expand=page"
   #url2 = urlbase+dicthomepage[spacekey]+"/child/page"
   print (url2)
   #print ( "done")

   # call one page at the time
   headers = {
      "Accept": "application/json"
   }
   response2 = requests.request(
      "GET",
      url2,
      headers=headers,
      auth=auth,
      verify=False
   )