Code Monkey home page Code Monkey logo

yatas-notion's Introduction

yatas-logo

YATAS Notion export

A simple idea store easily my yatas report in a notion database

Getting Started

Plugin Usage

Add in .yatas.yml file your plugin configuration:

plugins:
  - name: "notion"
    enabled: true
    type: "report"
    source: "github.com/Thibaut-Padok/yatas-notion"
    version: "latest"
    description: "Add your yatas report in a notion database"
pluginsConfiguration:
  - pluginName: notion
    pageID: $NotionPageID #The one you want the yatas database to be, it will create the database if not exist. This page must use a Notion connection YATAS-Notion
    token: $NotionConnectionToken # The secret to be able to use Notion Connection
    authToken: $token_v2 # The token from the cookies notion web page to be able to call notionapi/v3 and use yatas-notion advanced options. (optional)

Run yatas

  • The Yatas Database will be created if needed
  • The Yatas report will be created in this Yatas database
  • For each test you will have a dedicated page with informations related result.
  • If the authToken is provided and it is valid, the page will be automatically Locked.
  • Enjoy !

Important

Such as the Yatas Database is found thanks to his name, please do not change it else a new one will be created. Is not in the road map to use a variable because I want to keep the pluginConfiguration as simple as possible.

Usage for development

Useful export YATAS_LOG_LEVEL=debug

Use make install

Information

As I use 2 differents version of notionapi, I also use 2 differents Go library:

  • notionapi/v1 : "github.com/jomei/notionapi"
  • notionapi/v3 : "github.com/kjk/notionapi"

But also, this library does not implement all method I need, so I create custom clients with custom methods. Then, I have 4 differents type of client, so to be able to use one of the four client at any time in the code, I choose to manage them thanks to the structure NotionClient. The function take often this objet as argument, like that they could call the different API as they want.

yatas-notion's People

Contributors

thibaut-padok avatar

Stargazers

Victor @ Keltio 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.