Add Youtube-Node (#717)

*  Youtube-Node

*  Small improvement

*  Improvements

*  Improvements

* zap: Improvements

Co-authored-by: Jan <janober@users.noreply.github.com>
This commit is contained in:
Jan
2020-08-16 09:39:40 +02:00
committed by GitHub
11 changed files with 5384 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import {
ICredentialType,
NodePropertyTypes,
} from 'n8n-workflow';
//https://developers.google.com/youtube/v3/guides/auth/client-side-web-apps#identify-access-scopes
const scopes = [
'https://www.googleapis.com/auth/youtube',
'https://www.googleapis.com/auth/youtubepartner',
'https://www.googleapis.com/auth/youtube.force-ssl',
'https://www.googleapis.com/auth/youtube.upload',
'https://www.googleapis.com/auth/youtubepartner-channel-audit',
];
export class YouTubeOAuth2Api implements ICredentialType {
name = 'youTubeOAuth2Api';
extends = [
'googleOAuth2Api',
];
displayName = 'Google OAuth2 API';
properties = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
default: scopes.join(' '),
},
];
}