get_plain_text_from_rich_text
- rich_text: A list of dictionaries representing rich text elements. Each dictionary should contain a key named “plain_text” with the plain text content.
get_media_source_text
- block: A dictionary representing a Notion media block.
NotionToolkit
- notion_token (Optional[str], optional): The notion_token used to interact with notion APIs. (default: :obj:
None
) - notion_client (module): The notion module for interacting with the notion APIs.
init
- notion_token (Optional[str], optional): The optional notion_token used to interact with notion APIs.(default: :obj:
None
)
list_all_users
list_all_pages
get_notion_block_text_content
- block_id (str): The ID of the Notion block to retrieve.
get_text_from_block
- block (dict): A dictionary representing a Notion block.