Skip to main content
AI agentをユーザーのFitbitアカウントに接続すると、フィットネスデータの追跡、アクティビティや食事の記録、新しいフィットネス目標の設定を行えるようになります。

FitbitをAuth0に接続する

1

Fitbitの設定

  1. Fitbit Developerアカウントのページにアクセスして、サインアップします。
  2. Fitbit Developer Consoleで新しいアプリケーションを作成します。
  3. アプリケーションの詳細フォームに必要事項を入力します。
  4. OAuth 2.0 Application Typeを選択します。
  5. OAuthのリダイレクトURLを構成します。
    • Redirect URL:https://YOUR_AUTH0_DOMAIN/login/callback
    You can find the Auth0 domain in the Auth0 Dashboard.You can find this under Applications > [Your Application] > Settings > Basic Information > Domain.If you are using the custom domains feature, your Auth0 domain is the custom domain. You can find this under Branding > Custom Domains.
  6. Default Access Type:Read-OnlyまたはRead and Writeを選択します。
  7. Saveを選択します。
  8. 作成が完了すると、Client IDとclient secretが表示されます。
  9. Client IDとclient secretをコピーします。
Fitbitの設定の詳細については、Fitbitの開発者ガイドを参照してください。
2

Auth0の設定

このガイドでは、Auth0 で Fitbit 接続をセットアップする手順を説明します。 このような接続を使用して、ユーザーに代わってアプリから第三者 API を呼び出す方法を一連の流れで示す例については、 ユーザーに代わって第三者 API を呼び出すクイックスタートをお読みください。

Token Vaultの設定例

Fitbit接続でToken Vaultを設定するには、アプリケーションで次のコードスニペットを使用します。

Next steps