Package Exports
- notionapi-agent
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (notionapi-agent) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
notionapi-agent
Unofficial Node.js API client for Notion.so.
⚠️ This is a work-in-progress project. If you need to use Notion's API in production, I recommend waiting for their official release.
Installation
npm install notionapi-agent
Getting Started
const { NotionAgent } = require('notionapi-agent')
const agent = new NotionAgent()
async function main() {
let pageId = '181e961a-eb5c-4ee6-9153-07c0dfd5156d0'
let page = await agent.loadPageChunk(pageId)
if (page.error) {
console.log(`Error:\n`, page.error)
} else if (page.data) {
console.log(`Blocks:\n`, page.data)
}
}
main()
See more API in documentation.
Development
Project Structure
External Dependencies
-
npm i -g typedoc