@@ -0,0 +1,1068 @@
+#!/usr/bin/env python3%0A# -*- coding: utf-8 -*-%0A%0A#################################################################%0A# Install the Python requests library: pip install requests%0A# http://docs.python-requests.org/en/master/user/quickstart/%0A#################################################################%0A%0A# Src: https://developers.notion.com/reference/retrieve-a-database%0A%0Aimport requests%0Aimport json%0A%0Awith open(%22NOTION_SECRET_TOKEN%22, %22r%22) as fd:%0A    NOTION_TOKEN = fd.read().strip()%0A%0Awith open(%22NOTION_PAGE_ID%22, %22r%22) as fd:%0A    NOTION_PAGE_ID = fd.read().strip()%0A%0A%0AREQUEST_URL = f%22https://api.notion.com/v1/pages/%7BNOTION_PAGE_ID%7D%22%0AHEADER_DICT = %7B%0A    %22Authorization%22: f%22Bearer %7BNOTION_TOKEN%7D%22,%0A    %22Content-Type%22: %22application/json%22,%0A    %22Notion-Version%22: %222021-08-16%22%0A%7D%0A%0Aresp = requests.get(REQUEST_URL, headers=HEADER_DICT)%0A%0Aprint(json.dumps(resp.json(), sort_keys=False, indent=4))%0A%0A#with open(%22db.json%22, %22w%22) as fd:%0A#    #json.dump(data, fd)                           # no pretty print%0A#    json.dump(issue_list, fd, sort_keys=False, indent=4)  # pretty print format

Add a snippet.