UNPKG

@ai-growth/n8n-nodes-wordpress

Version:

n8n node for WordPress integration with AI GROWTH - SEO WP plugin

61 lines 1.98 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WordPressCredentials = void 0; class WordPressCredentials { constructor() { this.name = 'wordpressApi'; this.displayName = 'WordPress API'; this.documentationUrl = 'wordpress'; this.properties = [ { 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', }, { displayName: 'Ignore SSL Issues (Insecure)', name: 'allowUnauthorizedCerts', type: 'boolean', description: 'Whether to connect even if SSL certificate validation is not possible', default: false, }, ]; this.authenticate = { type: 'generic', properties: { auth: { username: '={{$credentials.username}}', password: '={{$credentials.password}}', }, }, }; this.test = { request: { baseURL: '={{$credentials?.url}}/wp-json/wp/v2', url: '/users', method: 'GET', skipSslCertificateValidation: '={{$credentials.allowUnauthorizedCerts}}', }, }; } } exports.WordPressCredentials = WordPressCredentials; exports.default = WordPressCredentials; //# sourceMappingURL=WordPressCredentials.js.map