🔨 Add some additional information

This commit is contained in:
Tanay Pant
2020-07-11 11:32:15 +02:00
parent bf2ed24853
commit de1851c7a3
2 changed files with 30 additions and 32 deletions

View File

@@ -20,7 +20,7 @@ Create a [Google Cloud](https://cloud.google.com/) account and access the consol
7. Use provided API Key with your Google node credentials in n8n.
![Getting Google credentials](https://i.imgur.com/r9KX5Gh.gif) -->
## Using OAuth
### Using OAuth
1. Access your Google cloud console.
2. Click on the hamburger menu on the top left.
@@ -36,14 +36,35 @@ Create a [Google Cloud](https://cloud.google.com/) account and access the consol
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.
15. Click on the *Enable* button.
![Getting Google credentials](./using-oauth-calendar.gif)
## Google Drive / Sheets API
## Using Service Account
### Using OAuth
1. Access your [Google cloud console](https://console.cloud.google.com).
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.
14. Once the credential has connected, click on *Create* in the 'Create New Credentials' screen in n8n.
13. Return to your Google cloud console and click on *Library* in the menu on the left.
14. Search for 'Sheets', and click on *Google Sheets API*.
15. Click on the *Enable* button.
### Using Service Account
1. Access your Google dashboard.
2. Click on your user icon on the top left.
@@ -63,25 +84,3 @@ It will appear something like this in a text editor:
11. Before entering the private_key in n8n, make sure that you replace all the `\n` with new lines.
![Getting Google credentials](https://i.imgur.com/Q9eFy7B.gif)
## Using OAuth
1. Access your [Google cloud console](https://console.cloud.google.com).
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.
14. Once the credential has connected, click on *Create* in the 'Create New Credentials' screen in n8n.
13. Return to your Google cloud console and click on *Library* in the menu on the left.
14. Search for 'Sheets', and click on *Google Sheets API*.
15. Click on *Enable*.

View File

@@ -15,7 +15,7 @@ You can find authentication information for this node [here](../../../credential
- Append data to a sheet
- Clear data from a sheet
- Delete columns and rows from a sheet
- Look up a specific column value in a sheet
- Look up a specific column value and return the matching row
- Read data from a sheet
- Update rows in a sheet
@@ -23,11 +23,11 @@ You can find authentication information for this node [here](../../../credential
This workflow shows you how to read from from a Google Sheets spreadsheet. You can also find the [workflow](https://n8n.io/workflows/449) on this website. This example usage workflow uses the following two nodes.
- [Start](../../core-nodes/Start/README.md)
- [GoogleSheets]()
- [Google Sheets]()
The final workflow should look like the following image.
![A workflow with the GoogleSheets node](./workflow.png)
![A workflow with the Google Sheets node](./workflow.png)
### 1. Start node
@@ -36,10 +36,9 @@ The Start node exists by default when you create a new workflow.
### 2. Google Sheets node
1. First of all, you'll have to enter credentials for the Google Sheets node. You can find out how to do that [here](../../../credentials/Google/README.md), in the section 'Google Drive / Sheets API'.
2. Select *OAuth2* in the *Authentication* field.
2. Select 'OAuth2' in the *Authentication* field.
3. Copy the string of characters located between `/d/` and `/edit` in your spreadsheet URL. Paste that string in the *Sheet ID* field.
4. In the *Range* field, enter the range of columns to be read from your spreadsheet.
5. In the *Data Start Row* field, enter the number of the first row that contains data, excluding the header row.
6. In the *Key Row* field, enter the number of the header row.
5. In the *Data Start Row* field, enter the number of the first row that contains data, excluding the header row. Keep in mind that it starts with 0. So, in case your data starts from row 2, you'd enter 1 in the field.
6. In the *Key Row* field, enter the number of the header row. Keep in mind that it starts with 0. So, in case your header is in row 1, you'd enter 0 in the field.
7. Click on *Execute Node* to run the workflow.