2019-12-30 13:08:22 -08:00
|
|
|
import {
|
|
|
|
ICredentialType,
|
|
|
|
NodePropertyTypes,
|
|
|
|
} from 'n8n-workflow';
|
|
|
|
|
|
|
|
export class WordpressApi implements ICredentialType {
|
|
|
|
name = 'wordpressApi';
|
|
|
|
displayName = 'Wordpress API';
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'wordpress';
|
2019-12-30 13:08:22 -08:00
|
|
|
properties = [
|
|
|
|
{
|
|
|
|
displayName: 'Username',
|
|
|
|
name: 'username',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
2020-01-03 19:47:19 -08:00
|
|
|
displayName: 'Wordpress URL',
|
|
|
|
name: 'url',
|
2019-12-30 13:08:22 -08:00
|
|
|
type: 'string' as NodePropertyTypes,
|
|
|
|
default: '',
|
2020-01-03 19:47:19 -08:00
|
|
|
placeholder: 'https://example.com',
|
2019-12-30 13:08:22 -08:00
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|