mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
⚡ Add API key to Twilio credentials (#1797)
* ⚡ Add API key to Twilio credentials * ⚡ Minor simplification Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -9,6 +9,22 @@ export class TwilioApi implements ICredentialType {
|
||||
displayName = 'Twilio API';
|
||||
documentationUrl = 'twilio';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Auth Type',
|
||||
name: 'authType',
|
||||
type: 'options' as NodePropertyTypes,
|
||||
default: 'authToken',
|
||||
options: [
|
||||
{
|
||||
name: 'Auth Token',
|
||||
value: 'authToken',
|
||||
},
|
||||
{
|
||||
name: 'API Key',
|
||||
value: 'apiKey',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Account SID',
|
||||
name: 'accountSid',
|
||||
@@ -20,6 +36,42 @@ export class TwilioApi implements ICredentialType {
|
||||
name: 'authToken',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
authType: [
|
||||
'authToken',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'API Key SID',
|
||||
name: 'apiKeySid',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
authType: [
|
||||
'apiKey',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'API Key Secret',
|
||||
name: 'apiKeySecret',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
default: '',
|
||||
displayOptions: {
|
||||
show: {
|
||||
authType: [
|
||||
'apiKey',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user