createTextBlock: Create a new block to send to Notion.

Description Usage Arguments Value Examples

View source: R/createTextBlock.R

Description

createTextBlock creates objects for most text-focused block types. See the "type" parameter for a full list.

Usage

1

Arguments

type

String. Currently supports the following types: paragraph, heading_1, heading_2, heading_3, callout, quote, bulleted_list_item, numbered_list_item, to_do, toggle.

text

String. The text content of the block.

Value

Data frame object representing the Notion block object.

Examples

1
2
createTextBlock("paragraph","This is the text of a new paragraph block")
createTextBlock("quote","Do not be miserable before it is time. - Seneca")

burrowsdt/r2notion documentation built on Jan. 5, 2022, 4:10 p.m.