Small improvement

This commit is contained in:
ricardo 2020-06-14 18:19:35 -04:00
parent 8d778bf06e
commit 2ef5c8c836
3 changed files with 9 additions and 9 deletions

View file

@ -32,7 +32,7 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
}
try {
if (authenticationMethod === 'accessToken') {
if (authenticationMethod === 'apiToken') {
const credentials = this.getCredentials('zendeskApi');
if (credentials === undefined) {

View file

@ -55,7 +55,7 @@ export class Zendesk implements INodeType {
displayOptions: {
show: {
authentication: [
'accessToken',
'apiToken',
],
},
},
@ -79,15 +79,15 @@ export class Zendesk implements INodeType {
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
name: 'API Token',
value: 'apiToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
default: 'apiToken',
description: 'The resource to operate on.',
},
{

View file

@ -45,7 +45,7 @@ export class ZendeskTrigger implements INodeType {
displayOptions: {
show: {
authentication: [
'accessToken',
'apiToken',
],
},
},
@ -77,15 +77,15 @@ export class ZendeskTrigger implements INodeType {
type: 'options',
options: [
{
name: 'Access Token',
value: 'accessToken',
name: 'API Token',
value: 'apiToken',
},
{
name: 'OAuth2',
value: 'oAuth2',
},
],
default: 'accessToken',
default: 'apiToken',
description: 'The resource to operate on.',
},
{