我尝试获取概念表数据,但关系表仅返回页面的 ID,没有实际数据。如何使用关系 ID 获取数据?
databaseId ='my_database_id'
headers = {
"Authorization": "Bearer " + token,
"Content-Type": "application/json",
"Notion-Version": "2021-05-13"
}
def readDatabase(databaseId, headers):
readUrl = f"https://api.notion.com/v1/databases/{databaseId}/query"
res = requests.request("POST", readUrl, headers=headers)
data = res.json()
print(res.text)