Description Usage Arguments Value Examples
This function facilitates basic page creation in Notion. Create one or more blocks using createTextBlock or a
similar function and pass as unnamed arguments to create a page with content. Returns a list object
representing a Notion page block. To publish automatically, set postPage = TRUE
.
1 |
page_id |
Character string. The Notion page id or URL for the parent page of your new page. |
title |
Character string. The title of your new page. |
postPage |
Boolean. If set to TRUE, the final page block will be posted to Notion. |
... |
Data frame representing Notion content to add to page. May accept multiple blocks. |
List object representing a Notion page block.
1 2 3 | newParagraphBlock <- createTextBlock("paragraph", "This is a new paragraph block")
page_id = "31d8db33bxyxy8d09xyxyb42758886ef"
## Not run: createPage(page_id, "My new page title", newParagraphBlock)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.