Connectorを作成する
Linearの認証情報を入力する
作成したコネクターからaccess_tokenを取得する
import morph from morph import MorphGlobalContext from morph_lib.api import get_auth_token @morph.func def main(context: MorphGlobalContext): access_token = get_auth_token("connection_name") # ↓↓↓ access_tokenを使用した処理 ↓↓↓
connections.ymlを編集する
~/.morph/connections.yml
mkdir ~/.morph touch ~/.morph/connections.yml
connections: linear-connection: # 一意な任意の名前 type: linear # 固定 method: linear_oauth # 固定 refresh_token: str client_id: str client_secret: str redirect_uri: str access_token: str # 任意
コード上でコネクターを使いデータを取得する
morph deploy