Commit 9da3cc6c authored by jyong's avatar jyong

query block's parent page

parent 9e842330
......@@ -222,7 +222,7 @@ class NotionOAuth(OAuthDataSource):
'Authorization': f"Bearer {access_token}",
'Notion-Version': '2022-06-28',
}
response = requests.get(url=f'{self._NOTION_PAGE_SEARCH}/{block_id}', headers=headers)
response = requests.get(url=f'{self._NOTION_BLOCK_SEARCH}/{block_id}', headers=headers)
response_json = response.json()
parent = response_json['parent']
parent_type = parent['type']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment