Merge branch 'google-sheets-docs' of https://github.com/MLH-Fellowship/n8n-docs into MLH-Fellowship-google-sheets-docs

This commit is contained in:
Tanay Pant
2020-07-11 11:01:42 +02:00
3 changed files with 67 additions and 0 deletions

View File

@@ -63,3 +63,25 @@ 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

@@ -0,0 +1,45 @@
---
permalink: /nodes/n8n-nodes-base.googleSheets
---
# Google Sheets
[Google Sheets](https://www.google.com/sheets) is a web-based spreadsheet program that is part of Google's office software suite within its Google Drive service.
::: tip 🔑 Credentials
You can find authentication information for this node [here](../../../credentials/Google/README.md).
:::
## Basic Operations
- 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
- Read data from a sheet
- Update rows in a sheet
## Example Usage
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]()
The final workflow should look like the following image.
![A workflow with the GoogleSheets node](./workflow.png)
### 1. Start node
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.
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.
7. Click on *Execute Node* to run the workflow.

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB