Code Monkey home page Code Monkey logo

ableef's Introduction

ABleef

Notionデータベースに書いた今日のBleeeeeefingをSlackに投稿する。

Installation

1. Notion APIのトークンの取得とデータベースの設定

  1. Notion Developersのガイドにしたがってインテグレーションを作成する。
  2. Internal Integration Token をコピーして.envファイルに記入する。
  3. データベースを作成し、URLからDatabase IDをコピーして.envファイルに記入する。
  4. Notion APIのバージョン( 2021-08-16 )を.envファイルに記入する。

2. Slack APIのトークンの取得

  1. slack apiにアクセスする。
  2. Create New App をクリックし、App Name に任意の名前を入力して、Development Slack Workspace で導入したい先のワークスペースを選択する。
  3. 遷移先ページ左側のメニューから OAuth & Permissions をクリックする。
  4. Add an OAuth Scope をクリックし、 chat:write を選択する。
  5. ページトップの Install to Workspace をクリックする。
  6. 許可する をクリックする。
  7. OAuth Access Token をコピーして.envファイルに記入する。
  8. 投稿したいSlackチャンネル(#から始まる文字列)を.envファイルに記入する。

3. プロジェクトのインストール

git clone https://github.com/KindMaple/ABleef.git
cd ABleef
poetry install

Usage

poetry shell
python3
>>> from ableef.lib import post_daily_bleeeeeefing
>>> post_daily_bleeeeeefing()

ableef's People

Contributors

kattsuuya avatar

Watchers

 avatar

ableef's Issues

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.