Notion-Helper: Power Tools for the Notion API
richText(name, value) checkbox(name, value) date(name, start, end) email(name, value) files(name, fileArray) multiSelect(name, valuesArray) number(name, value) people(name, personArray) phoneNumber(name, value) relation(name, pageArray) select(name, value) status(name, value) url(name, value) startParent(blockType, options) endParent() paragraph(options) heading1(options) heading2(options) heading3(options) bulletedListItem(options) bullet(options) - alias function numberedListItem(options) num(options) - alias function toDo(options) toggle(options) code(options) quote(options) callout(options) divider() image(options) video(options) file(options) pdf(options) bookmark(options) embed(options) tableOfContents(options) table(options) tableRow(options) loop(blockTypeOrCallback, options) parentPage() pageId() propertyId() blockId() cover() icon() reset() - resets the builder.
const listItems = album.tracks.map((item) => ({ numbered_list_item: { rich_text: [ { text: { content: item, }, }, ], }, })); function getISODate(dateString) { return new Date(dateString).toISOString(); } const page = { parent: { data_source_id: data_source_id, }, properties: { Name: { title: [ { text: { content: album.name, }, }, ], }, Artist: { rich_text: [ { text: { content: album.artist, }, }, ], }, Released: { date: { start: getISODate(album.release_date), }, }, }, children: [ { heading_1: { rich_text: [ { text: { content: "Tracklist", }, }, ], }, }, ...listItems, { heading_1: {…
saved by
related reading
- Paper – design, share, shippaper.design
- Developer quickstart - Notion Docsdevelopers.notion.com
- Overview - Notion Docsdevelopers.notion.com
- Build with Notion’s Developer Platformnotion.com
- The data model behind Notion's flexibilitynotion.so
- The data model behind Notion's flexibilitynotion.com
- Creating the Notion APInotion.com
- GitHub - dragonman225/notablog: Tell stories of your work with Notiongithub.com
- Tech Ad Archivead-archive.lovable.app
- Colimit - Discover Curated Annotationstreeline.vercel.app
- Heptabaseapp.heptabase.com
- Notionnotion.so