コンテンツにスキップ

Google API Integration

  • Google Sheets
  • Google Drive
  • OAuth

Porta と Google 連携のための OAuth 構成

Section titled “Porta と Google 連携のための OAuth 構成”

OAuth は、アクセス委任のためのオープン標準です。インターネットユーザーが、パスワードを渡すことなく、他のウェブサイト上の自分の情報へのアクセスをウェブサイトやアプリケーションに許可する方法として一般的に使用されます。

Google Cloud で新しいプロジェクトを作成し、Google Sheets と Google Drive API を有効にする

Section titled “Google Cloud で新しいプロジェクトを作成し、Google Sheets と Google Drive API を有効にする”
  1. https://console.cloud.google.com/welcome に移動し、Google Cloud で新しいプロジェクトを作成します。 Create new project
  2. NEW PROJECT をクリックします。 Click new project
  3. プロジェクトの詳細を入力します。 Enter the project details
  4. APIs and services に移動し、サイドバーから Enabled APIs and services を選択します。
  5. + Enable APIs and services を選択します。 Enable APIs and services
  6. Google Sheets API を検索して有効にします。次に同じ検索を繰り返して Google Drive API を有効にします。 Enable APIs and services
  7. Google Sheets API と Google Drive API の両方で Enable をクリックします。 Enable Google Sheets and Google Drive API
  8. Google Sheets API と Google Drive API が有効になっていることを確認します。 Check that Sheets and Drive APIs are both enabled
  1. サイドメニューから OAuth consent screen を選択します。
  2. User Type で External を選択します。
  3. Create をクリックします。 OAuth Consent screen
  4. 以下の情報を入力します。
  • App name - eg., Porta Production or Porta Staging
  • User support email - [your email address]
  • Application home page - eg., https://staging.porta.solutions
  • Authorised Domain name - porta.solutions Form details
  1. SAVE AND CONTINUE をクリックします。
  2. scopes のデフォルト設定を確認し、SAVE AND CONTINUE をクリックします。 Save default scope settings
  3. +ADD USERS をクリックして Test users を追加します。 Add Test users
  4. Test User のメールアドレスを入力し、ADD をクリックします。
  5. Test User のメールアドレスが追加されたことを確認し、SAVE AND CONTINUE をクリックします。 Confirm test users
  6. サマリーページで詳細が正しいことを確認し、BACK TO DASHBOARD をクリックします。 Confirm details on the summary page
  1. サイドメニューから Credentials を選択します。
  2. + Create Credentials をクリックします。 Create Credentials
  3. リストから OAuth client ID を選択します。
  4. フォームに入力します。
  5. Create をクリックします。 Create authorised URIs
  6. Client IDClient secret をコピーして保存し、Porta の設定を構成します。.JSON ファイルをダウンロードして手動でコピーすることもできます。 Save the Client ID and Client secret
  1. Settings > Integrations に移動します。
  2. Google SheetGoogle Drive XMLGoogle OAuth の各連携を有効化します。 Activate the integration
  3. 連携のリストから Google OAuth をダブルクリックします。 Porta Google OAuth
  4. Google OAuth ページで保存した Client IDClient secret を追加します。 Porta - Add the ClientID and Client secret details
  1. File > New > Template をクリックして、新しいテンプレートを作成します。 Create a new template
  2. MAKE A TEMPLATE をクリックします。 Make a template
  3. Template Builder のオプションから Google Sheet を選択します。
  4. Google Sheet をクリックします。 GoogleAPI Template Builder select
  5. Sign in with Google をクリックします。 Sign in with Google
  6. Google ユーザー認証情報をクリックして、Google アカウントを選択します。 Choose your Google user account
  7. Google Drive ファイルと Google Sheet スプレッドシートの表示・編集・作成・削除へのアクセスを許可します。 Google account permissions
  8. ドロップダウンリストから Google Sheet を選択します。 Google sheet