n8n-docs/docs/nodes/credentials/Google
2020-08-16 08:06:13 +02:00
..
README.md 🔨 Add permalinks to credential docs 2020-08-16 08:06:13 +02:00
using-oauth-calendar.gif Changed header structure / added permalinks (#6) 2020-06-26 14:06:54 +02:00
using-service-account.gif Changed header structure / added permalinks (#6) 2020-06-26 14:06:54 +02:00

permalink
/credentials/google

Google

You can find information about the operations supported by the Google node on the integrations page. You can also browse the source code of the node on GitHub.

Prerequisites

Create a Google Cloud account.

Using OAuth

  1. Access your Google Cloud Console.
  2. Click on the hamburger menu on the top left.
  3. Click on API & Services.
  4. Click on Credentials.
  5. Click on Create Credentials.
  6. Select OAuth client ID.
  7. Select 'Web application' as the Application type.
  8. Click on the Add URL button under the 'Authorized redirect URIs' section.
  9. Copy your OAuth Callback URL from the 'Create New Credentials screen' in n8n and paste it there.
  10. Click on the Create button in the Google cloud console.
  11. Use provided Client Secret and Client ID with your Google node credentials in n8n.
  12. While still in n8n, click on the Connect button in the OAuth section, and once the connection is complete, click on the Create button.
  13. Now, go back to the Google cloud console and click on Library in the menu on the left.
  14. Search for the API that you want to enable. For example, search for 'Calendar', and click on 'Google Calendar API'.
  15. Click on the Enable button.

Getting Google credentials

Using Service Account

  1. Access your Google Cloud Console.
  2. Click on the hamburger menu on the top left.
  3. Click on API & Services.
  4. Click on Credentials.
  5. Click on Create Credentials.
  6. Click on Service Account.
  7. Choose your preferences.
  8. Fill out information for your service account.
  9. You will receive a .json file with your credentials.
  10. Use the values of client_email and private_key for your Google Credentials in the n8n node.
  11. Before entering the private_key in n8n, make sure that you replace all the \n with new lines.

Getting Google credentials