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

35 lines
616 B
TypeScript
Raw Normal View History

2019-12-30 13:08:22 -08:00
import {
ICredentialType,
INodeProperties,
2019-12-30 13:08:22 -08:00
} from 'n8n-workflow';
export class WordpressApi implements ICredentialType {
name = 'wordpressApi';
displayName = 'Wordpress API';
documentationUrl = 'wordpress';
properties: INodeProperties[] = [
2019-12-30 13:08:22 -08:00
{
displayName: 'Username',
name: 'username',
type: 'string',
2019-12-30 13:08:22 -08:00
default: '',
},
{
displayName: 'Password',
name: 'password',
type: 'string',
typeOptions: {
password: true,
},
2019-12-30 13:08:22 -08:00
default: '',
},
{
displayName: 'Wordpress URL',
name: 'url',
type: 'string',
2019-12-30 13:08:22 -08:00
default: '',
placeholder: 'https://example.com',
2019-12-30 13:08:22 -08:00
},
];
}