【文件属性】:
文件名称:notionapi-agent:Notion.so的非官方Node.js API客户端
文件大小:123KB
文件格式:ZIP
更新时间:2021-04-30 15:21:36
nodejs javascript api typescript api-client
概念代理
非官方Node.js API客户端。
:warning: 如果您需要在生产中使用Notion的API,建议您等待它们的正式发布。
安装
npm install notionapi-agent
入门
基本用法
const { createAgent } = require ( "notionapi-agent" )
const agent = createAgent ( )
async function main ( ) {
const pageId = "181e961a-eb5c-4ee6-9153-07c0dfd5156d"
try {
const result = await agent . getRecordValues ( {
requests : [ { id : pageId , table : "block" } ]
} )
c
【文件预览】:
notionapi-agent-master
----.eslintrc.json(2KB)
----.gitignore(360B)
----documentation()
--------get-token()
--------dependency-graph.svg(10KB)
--------examples()
----package.json(2KB)
----src()
--------agent.ts(6KB)
--------httputil.ts(2KB)
--------interfaces()
--------strings.ts(233B)
--------log.ts(159B)
--------index.ts(60B)
--------error()
----LICENSE(1KB)
----CHANGELOG.md(582B)
----tsconfig.json(642B)
----rollup.config.js(354B)
----tools()
--------upgrade-deps.js(811B)
----README.md(2KB)
----.eslintignore(6B)
----.vscode()
--------launch.json(401B)
----test()
--------index.spec.ts(3KB)