n8n/packages/nodes-base/credentials/WordpressApi.credentials.ts
Tom 4d4db7f805
feat(Wordpress Node): Add Status option to Get All operation of Posts resource
* Wordpress: Add status to getAll: post

* Fix status name used in query string

* Alphabetically order options for getAll: post

* 🐛 Fixed pagination issue when there is no posts for the status

*  Updated password field to use a password type

Co-authored-by: Jonathan Bennetts <jonathan.bennetts@gmail.com>
2022-03-13 11:42:23 +01:00

35 lines
616 B
TypeScript

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