mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Small improvement
This commit is contained in:
parent
8d778bf06e
commit
2ef5c8c836
|
@ -32,7 +32,7 @@ export async function zendeskApiRequest(this: IHookFunctions | IExecuteFunctions
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (authenticationMethod === 'accessToken') {
|
if (authenticationMethod === 'apiToken') {
|
||||||
const credentials = this.getCredentials('zendeskApi');
|
const credentials = this.getCredentials('zendeskApi');
|
||||||
|
|
||||||
if (credentials === undefined) {
|
if (credentials === undefined) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ export class Zendesk implements INodeType {
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
authentication: [
|
authentication: [
|
||||||
'accessToken',
|
'apiToken',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -79,15 +79,15 @@ export class Zendesk implements INodeType {
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Access Token',
|
name: 'API Token',
|
||||||
value: 'accessToken',
|
value: 'apiToken',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'OAuth2',
|
name: 'OAuth2',
|
||||||
value: 'oAuth2',
|
value: 'oAuth2',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'accessToken',
|
default: 'apiToken',
|
||||||
description: 'The resource to operate on.',
|
description: 'The resource to operate on.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,7 @@ export class ZendeskTrigger implements INodeType {
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
authentication: [
|
authentication: [
|
||||||
'accessToken',
|
'apiToken',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -77,15 +77,15 @@ export class ZendeskTrigger implements INodeType {
|
||||||
type: 'options',
|
type: 'options',
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
name: 'Access Token',
|
name: 'API Token',
|
||||||
value: 'accessToken',
|
value: 'apiToken',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'OAuth2',
|
name: 'OAuth2',
|
||||||
value: 'oAuth2',
|
value: 'oAuth2',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
default: 'accessToken',
|
default: 'apiToken',
|
||||||
description: 'The resource to operate on.',
|
description: 'The resource to operate on.',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue