code: def get_page_id(name, space):
      
      data = _json.loads(_api.rest("?title=" + name.replace(" ", "%20") + "&"
                         "spaceKey=" + space + "&expand=history"))
      try:
          return data["results"][0]["id"]
      except:
          return ("Page not found!")
docs: Return id of a page based on passed page name and space.
      Parameters:
      - name: name of a Confluence page.
      - space: space the Confluence page is in.