Integrationから取得したaccess_tokenを取得します。
# 📦 Package: morph_lib.api
# 🛠️ Function: get_auth_token
def get_auth_token(
connection: str
) -> str
Parameters
画面で登録したIntegrationの名前を指定します。
Example
import pandas as pd
import morph
from morph import MorphGlobalContext
from morph_lib.api import get_auth_token
@morph.func(
name="freee_get_balance",
description="Freee Preprocess",
output_type="dataframe",
)
def freee_get_balance(context: MorphGlobalContext) -> pd.DataFrame:
access_token = get_auth_token("salesforce_integration_name")
# ↓↓↓ call API with access_token ↓↓↓