View Source Notion.Object (ElixirNotionAPI v0.3.4)

Convenience and utliity functions for various object definitions used by the Notion API.

Rich text, file and Emoji objects:

https://developers.notion.com/reference/rich-text https://developers.notion.com/reference/file-object https://developers.notion.com/reference/emoji-object

Link to this section Summary

Functions

Emoji objects contain emoji data for page icons.

filter object is used by the Search API endpoint to filter the results based on the provided criteria.

Filter by database object to be optionally used by the Search API endpoint

Filter by page object to be optionally used by the Search API endpoint

simple text rich text object

Sort object is exclusively used by the Search API endpoint

Sort ascending object to be used by the Search API endpoint

Sort descending object to be used by the Search API endpoint

URL or link rich text object

Link to this section Functions

Link to this function

emoji_object(emoji_character)

View Source

Emoji objects contain emoji data for page icons.

must be a single emoji

Link to this function

filter(page_or_database)

View Source

filter object is used by the Search API endpoint to filter the results based on the provided criteria.

page_or_database must be either "page" or "database"

https://developers.notion.com/reference/post-search

Filter by database object to be optionally used by the Search API endpoint

https://developers.notion.com/reference/post-search

Filter by page object to be optionally used by the Search API endpoint

https://developers.notion.com/reference/post-search

simple text rich text object

Sort object is exclusively used by the Search API endpoint

direction must be one of "ascending" and "descending".

https://developers.notion.com/reference/post-search

Sort ascending object to be used by the Search API endpoint

https://developers.notion.com/reference/post-search

Sort descending object to be used by the Search API endpoint

https://developers.notion.com/reference/post-search

URL or link rich text object

Link to this function

url(url_string, content, color \\ "default")

View Source