### Adds one new tool to the Notion toolkit * **AppendContentToEndOfPage**: Append markdown content to the end of a Notion page by its ID or title ### Fixes a bug * The **CreatePage** would previously fail if the content provided was broken into more than 100 blocks. I added 'chunking' logic to support > 100 blocks.
19 lines
654 B
Python
19 lines
654 B
Python
NOTION_API_URL = "https://api.notion.com/v1"
|
|
|
|
|
|
ENDPOINTS = {
|
|
"create_a_page": "/pages",
|
|
"retrieve_block_children": "/blocks/{block_id}/children",
|
|
"search_by_title": "/search",
|
|
"query_a_database": "/databases/{database_id}/query",
|
|
"update_page_properties": "/pages/{page_id}",
|
|
"append_block_children": "/blocks/{block_id}/children",
|
|
"retrieve_a_database": "/databases/{database_id}",
|
|
"create_comment": "/comments",
|
|
"retrieve_a_page": "/pages/{page_id}",
|
|
"retrieve_a_block": "/blocks/{block_id}",
|
|
"delete_a_block": "/blocks/{block_id}",
|
|
"update_a_block": "/blocks/{block_id}",
|
|
}
|
|
|
|
UNTITLED_TITLE = "New Page"
|