Code Monkey home page Code Monkey logo

notion_api_with_app_script's Introduction

English | 繁體中文

Notion_api_with_app_script

A simple note for using notion api with app script.

Why this repo created?

Recently I got a mission to write the code about notion api on google app script.

It is not a good experience reading notion api manual. Since it was update its syntax recently.(I totally ruined the OAuth2.0 on it, and wasted much of my time.)

In fact, It is a torture.(There are few tutorial or instance to learn. You can only read the outdated manual or code)

So, I wrote this repo to help someone like me to keep your time from this horrible api thing.

BTW, I think this time I am doing a great job on commnet in the code.

Before started

  • You may need a notion account.(from register or rent one.)
  • You may need to create a integration from notion developer
    • It will generate a integration token for you.(This is important, save it carefully)
    • And you need to give integration some of capabilities of writing, reading or inserting.(Depending on what you want to do)
  • Finally, you will need a database to run script on. Exactly, you only need the database id.

Database id can be get on your database webpage. On the url-> https://www.notion.so/{database_id}?v={nothing_to_do}

How to use api?

  • In the example script, put the token and database id in the const.
  • Run the script on app script.
  • In the example it will show all the object on your database.
  • Done!

Just try and modify for yourself!

notion_api_with_app_script's People

Contributors

jingshing avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.