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

Other Useful Business Software
The full-stack observability platform that protects your dataLayer, tags and conversion data Icon
The full-stack observability platform that protects your dataLayer, tags and conversion data

Stop losing revenue to bad data today. and protect your marketing data with Code-Cube.io.

Code-Cube.io detects issues instantly, alerts you in real time and helps you resolve them fast. No manual QA. No unreliable data. Just data you can trust and act on.
Learn More
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