n8n-docs/docs/nodes/credentials/Google
2020-07-11 11:32:15 +02:00
..
README.md 🔨 Add some additional information 2020-07-11 11:32:15 +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

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 and access the console.

Google Calendar

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 'Calendar', and click on 'Google Calendar API'.
  15. Click on the Enable button.

Getting Google credentials

Google Drive / Sheets API

Using OAuth

  1. Access your Google cloud console.
  2. Click on the hamburger menu button 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 in the 'Application type' section.
  8. Click on Add URI in the 'Authorized redirect URIs' section.
  9. Copy your OAuth Callback URL from the 'Create New Credentials' screen in n8n and paste it in your Google cloud console.
  10. Click on Create in your Google cloud console.
  11. Copy the provided Client ID and Client Secret and paste them in the 'Create New Credentials' screen in n8n.
  12. Click on the Connect OAuth Credentials button in the 'OAuth' section in n8n.
  13. If a popup alert shows 'This app isn't verified', click on Advanced and then click on Go to [project].
  14. Click on Allow for every permission request and finally on Allow at the confirmation screen.
  15. Once the credential has connected, click on Create in the 'Create New Credentials' screen in n8n.
  16. Return to your Google cloud console and click on Library in the menu on the left.
  17. Search for 'Sheets', and click on Google Sheets API.
  18. Click on the Enable button.

Using Service Account

  1. Access your Google dashboard.
  2. Click on your user icon 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.

It will appear something like this in a text editor:

Getting Google credentials

  1. Use the values of client_email and private_key for your Google Credentials in the n8n node.
  2. Before entering the private_key in n8n, make sure that you replace all the \n with new lines.

Getting Google credentials