Skip to content

Commit

Permalink
feat: (Google Sheets Trigger Node): Trigger for Google Sheets
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored Jan 17, 2023
1 parent ce1f4ef commit e839a81
Show file tree
Hide file tree
Showing 9 changed files with 934 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { ICredentialType, INodeProperties } from 'n8n-workflow';

const scopes = [
'https://www.googleapis.com/auth/drive',
'https://www.googleapis.com/auth/drive.file',
'https://www.googleapis.com/auth/spreadsheets',
'https://www.googleapis.com/auth/drive.metadata',
];

export class GoogleSheetsTriggerOAuth2Api implements ICredentialType {
name = 'googleSheetsTriggerOAuth2Api';

extends = ['googleOAuth2Api'];

displayName = 'Google Sheets Trigger OAuth2 API';

documentationUrl = 'google/oauth-single-service';

properties: INodeProperties[] = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden',
default: scopes.join(' '),
},
];
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"node": "n8n-nodes-base.googleSheetsTrigger",
"nodeVersion": "1.0",
"codexVersion": "1.0",
"categories": ["Data & Storage", "Productivity"],
"resources": {
"credentialDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/"
}
],
"primaryDocumentation": [
{
"url": "https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.googlesheetstrigger/"
}
],
"generic": []
},
"alias": ["CSV", "Spreadsheet", "GS"]
}
Loading

0 comments on commit e839a81

Please sign in to comment.