Skip to content

Commit

Permalink
✨ Gmail node (#856)
Browse files Browse the repository at this point in the history
* ✨ Gmail node

* ⚡ Improvements

* ⚡ Improvements

* ⚡ Improvements to Gmail-Node

* ⚡ Additional improvements to Gmail-Node

Co-authored-by: Erin <erin2722@gmail.com>
Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
  • Loading branch information
3 people authored Aug 18, 2020
1 parent 226dbce commit fb042ad
Show file tree
Hide file tree
Showing 9 changed files with 2,090 additions and 0 deletions.
30 changes: 30 additions & 0 deletions packages/nodes-base/credentials/GmailOAuth2Api.credentials.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';

const scopes = [
'https://www.googleapis.com/auth/gmail.labels',
'https://www.googleapis.com/auth/gmail.addons.current.action.compose',
'https://www.googleapis.com/auth/gmail.addons.current.message.action',
'https://mail.google.com/',
'https://www.googleapis.com/auth/gmail.modify',
'https://www.googleapis.com/auth/gmail.compose',
];


export class GmailOAuth2Api implements ICredentialType {
name = 'gmailOAuth2';
extends = [
'googleOAuth2Api',
];
displayName = 'Gmail OAuth2 API';
properties = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' '),
},
];
}
Loading

0 comments on commit fb042ad

Please sign in to comment.