Add Google Books node

This commit is contained in:
Tanay Pant
2020-10-19 19:57:50 +02:00
parent 4165fad307
commit f08d8c9375
5 changed files with 595 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
const scopes = [
'https://www.googleapis.com/auth/books',
];
export class GoogleBooksOAuth2Api implements ICredentialType {
name = 'googleBooksOAuth2Api';
extends = [
'googleOAuth2Api',
];
displayName = 'Google Books OAuth2 API';
documentationUrl = 'google';
properties = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' '),
},
];
}