Skip to main content
AI agentをユーザーのFreshBooksアカウントに接続すると、請求書の作成・送信、領収書に基づく経費の記録、クライアント情報の管理が可能になります。

FreshbooksをAuth0に接続する

1

Freshbooksの設定

  1. Freshbooks Developerアカウントのページにアクセスし、サインアップします。
  2. Freshbooks Developer Centerで新しいアプリを作成します。
  3. アプリの詳細を設定します。
    • Application Nameを設定します。
    • Redirect URIに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.
    FreshBooksでは、ローカル開発の場合を除き、リダイレクトURIにHTTPSを使用する必要があります。
  4. 必要なスコープを選択します (例:user:profile:read、user:clients:read、user:invoices:readなど) 。
  5. [Save (保存) ]を選択し、Client IDとClient Secretをコピーします。
Freshbooksの設定について詳しくは、Freshbooksでのログインに関するドキュメントを参照してください。
2

Auth0の設定

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

Token Vault の設定例

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

Next steps