n8n/packages/nodes-base/credentials/MoceanApi.credentials.ts

28 lines
582 B
TypeScript
Raw Normal View History

import { ICredentialType, INodeProperties } from 'n8n-workflow';
2020-02-11 23:52:36 -08:00
export class MoceanApi implements ICredentialType {
name = 'moceanApi';
2020-02-11 23:52:36 -08:00
displayName = 'Mocean Api';
documentationUrl = 'mocean';
properties: INodeProperties[] = [
2020-02-11 23:52:36 -08:00
// The credentials to get from user and save encrypted.
// Properties can be defined exactly in the same way
// as node properties.
{
displayName: 'API Key',
name: 'mocean-api-key',
type: 'string',
2020-02-11 23:52:36 -08:00
default: '',
},
{
displayName: 'API Secret',
name: 'mocean-api-secret',
type: 'string',
2020-02-11 23:52:36 -08:00
default: '',
},
];
}