2019-06-23 03:35:23 -07:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
2021-06-12 09:39:55 -07:00
|
|
|
INodeProperties,
|
2019-06-23 03:35:23 -07:00
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
|
|
|
|
export class MailgunApi implements ICredentialType {
|
|
|
|
name = 'mailgunApi';
|
|
|
|
displayName = 'Mailgun API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'mailgun';
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-06-23 03:35:23 -07:00
|
|
|
{
|
|
|
|
displayName: 'API Domain',
|
|
|
|
name: 'apiDomain',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'options',
|
2019-06-23 03:35:23 -07:00
|
|
|
options: [
|
|
|
|
{
|
|
|
|
name: 'api.eu.mailgun.net',
|
|
|
|
value: 'api.eu.mailgun.net',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'api.mailgun.net',
|
|
|
|
value: 'api.mailgun.net',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
default: 'api.mailgun.net',
|
2022-04-13 23:32:27 -07:00
|
|
|
description: 'The configured mailgun API domain',
|
2019-06-23 03:35:23 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Email Domain',
|
|
|
|
name: 'emailDomain',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'API Key',
|
|
|
|
name: 'apiKey',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2019-06-23 03:35:23 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|