Skip to content

Playground for working with the Notion and Todoist APIs. Perform 1-way synced activity from Notion.

Notifications You must be signed in to change notification settings

TomeSprout/notion-todoist-api-playground

Repository files navigation

Notion <-> Todoist API Playground

Uses the Notion SDK Template Repository and TypeScript.

Features

  • TypeScript for type checking.
  • Prettier for code formatting.
  • A minimal GitHub Actions workflow that typechecks your code.
  • Dotenv for configuring your Notion API token.
  • Dependabot for ensuring your (and this template's!) dependencies are up to date.
  • Our lovely Notion SDK!

Getting Started

  1. See the documentation for creating a Notion integration and have a secret Notion token.
  2. Share the newly created integration with the Notion Page or Database to be accessed and record the Database ID.
  3. See the documentation for the official Todoist REST API. The application needs an authorization header with the appropriate Bearer $token to make authorized calls.
    During development, the personal API token can be used and is accessed via User Settings > Integrations > API token.
  4. Add Notion token, Todoist token, and Notion Database ID to an .env file at the root of this repository.
    For example: echo "NOTION_TOKEN=[your token here]" > .env.
  5. Run npm install.
  6. Edit the database_id in index.ts from FIXME to the Database ID shared with the integration.
  7. Run npm start to run the script.

Now you can head over to our developer documentation for more information on using the Notion API!

NPM Scripts

This template has a few built-in NPM scripts:

Script Action
npm start Run index.ts.
npm run typecheck Type check using the TypeScript compiler.
npm run format Format using Prettier (also recommended: the Prettier VS Code extension if you're using VS code.)
npm run build Build JavaScript into the dist/ directory. You normally shouldn't need this if you're using npm start.

About

Playground for working with the Notion and Todoist APIs. Perform 1-way synced activity from Notion.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published