@openctx/provider-notion
v0.0.8
Published
Notion (OpenCtx provider)
Downloads
140
Readme
Notion context provider for OpenCtx
This is a context provider for OpenCtx that provides Notion results as context via the mentions and items APIs.
Usage
Add the following to your settings in any OpenCtx client:
"openctx.providers": {
// ...other providers...
"https://openctx.org/npm/@openctx/provider-notion": {
"auth": "<your notion bot access token>"
}
},
See https://developers.notion.com/docs/getting-started to get set up with a token for the Notion API.
Remember to add your integration to a page such that it can search that page and all sub pages.
Configuration
This provider configuration is a subset of the configuration for the NotionHQ JavaScript client:
auth
:: Bearer token for authentication. Required.logLevel
:: Verbosity of logs the client will produce. Levels are"debug"
,"info"
,"warn"
(default) and"error"
.timeoutMs
:: The number of milliseconds to wait before timing out an API call to Notion. Defaults to60000
.
Development
- Source code
- Docs
- License: Apache 2.0