Import and initialize a client using an integration token or an OAuth access token. Integrations don't have access to any pages (or databases) in the workspace at first. A user must share specific pages with an integration in order for those pages to be accessed using the API. This helps keep you and your team's information in Notion secure. Start from a new or existing page in your workspace. Insert a new database by typing /database and selecting a full page table. Give it a title. I've called mine "Weekend getaway destinations". Click on the Share button and use the selector to find your integration by its name, then click Invite. To use Notion's JavaScript library, you need to have npm and node.js installed. Alternatively, you can also use the cURL example to make the HTTP request directly.

Features

  • Each method returns a Promise which resolves the response
  • If the API returns an unsuccessful response, the returned Promise rejects with a APIResponseError
  • Endpoint parameters are grouped into a single object
  • You don't need to remember which parameters go in the path, query, or body
  • The client emits useful information to a logger. By default, it only emits warnings and errors
  • This package contains type definitions for all request parameters and responses

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Notion SDK for JavaScript

Notion SDK for JavaScript Web Site

You Might Also Like
Automated RMM Tools | RMM Software Icon
Automated RMM Tools | RMM Software

Proactively monitor, manage, and support client networks with ConnectWise Automate

Out-of-the-box scripts. Around-the-clock monitoring. Unmatched automation capabilities. Start doing more with less and exceed service delivery expectations.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Notion SDK for JavaScript!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2022-03-17