From 731308124028457171a147e5e71ef85dfd05294d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Mon, 1 Mar 2021 09:59:45 -0300 Subject: [PATCH] :zap: Add credentials file --- ...tagramBasicDisplayOAuth2Api.credentials.ts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 packages/nodes-base/credentials/InstagramBasicDisplayOAuth2Api.credentials.ts diff --git a/packages/nodes-base/credentials/InstagramBasicDisplayOAuth2Api.credentials.ts b/packages/nodes-base/credentials/InstagramBasicDisplayOAuth2Api.credentials.ts new file mode 100644 index 0000000000..2919876d93 --- /dev/null +++ b/packages/nodes-base/credentials/InstagramBasicDisplayOAuth2Api.credentials.ts @@ -0,0 +1,51 @@ +import { + ICredentialType, + NodePropertyTypes, +} from 'n8n-workflow'; + + +export class InstagramBasicDisplayOAuth2Api implements ICredentialType { + name = 'instagramBasicDisplayOAuth2Api'; + extends = [ + 'oAuth2Api', + ]; + displayName = 'Instagram Basic Display OAuth2 API'; + properties = [ + { + displayName: 'Authorization URL', + name: 'authUrl', + type: 'hidden' as NodePropertyTypes, + default: 'https://api.instagram.com/oauth/authorize', + }, + { + displayName: 'Access Token URL', + name: 'accessTokenUrl', + type: 'hidden' as NodePropertyTypes, + default: 'https://api.instagram.com/oauth/access_token', + }, + { + displayName: 'Scope', + name: 'scope', + type: 'hidden' as NodePropertyTypes, + default: 'user_profile,user_media', + }, + { + displayName: 'Auth URI Query Parameters', + name: 'authQueryParameters', + type: 'hidden' as NodePropertyTypes, + default: 'response_type=code', + }, + { + displayName: 'Auth URI Query Parameters', + name: 'authQueryParameters', + type: 'hidden' as NodePropertyTypes, + default: 'grant_type=authorization_code', + }, + { + displayName: 'Authentication', + name: 'authentication', + type: 'hidden' as NodePropertyTypes, + default: 'body', + }, + ]; +}