🚧 Setup

Added OAuth2 credentials, UI, generic functions changes
This commit is contained in:
Rupenieks
2020-07-03 11:22:39 +02:00
parent 13f71d3af0
commit de7a6d6dfb
4 changed files with 135 additions and 10 deletions

View File

@@ -37,9 +37,44 @@ export class Bitly implements INodeType {
{
name: 'bitlyApi',
required: true,
}
displayOptions: {
show: {
authentication: [
'accessToken',
],
},
},
},
{
name: 'bitlyOAuth2Api',
required: true,
displayOptions: {
show: {
authentication: [
'oAuth2',
],
},
},
},
],
properties: [
{
displayName: 'Authentication',
name: 'authentication',
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
description: 'The resource to operate on.',
},
{
displayName: 'Resource',
name: 'resource',