| Invalid Date
字数 0阅读时长 1 分钟

1. Singleton methods

self.instance → NotionCache

NotionCache class is a singleton class. NotionCache.instance creates a NotionCache object or retrieve an existing Notion Cache object.

2. Instance methods

create_client(notion_token, wait: 0.1)

  • [PARAM] notion_token Notion integration token
  • [PARAM(optional)] wait sleep time before calling API. Notion API has a limit for 3 accesses per second. In this tool, the default wait is 0.3333 seconds.
Please create a client (notion-ruby-client) before you use the following class.

hex_id(id)

  • [PARAM] id XXX_id with “-”
hex_id returns XXX_id without “-”
Loading...
目录