@webagent-cloud/n8n-nodes-webagent
Version:
Webagent n8n nodes package
43 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WebagentApi = void 0;
class WebagentApi {
constructor() {
this.name = 'webagentApi';
this.displayName = 'Webagent API';
this.documentationUrl = 'https://docs.webagent.cloud/cloud-api-reference/introduction';
this.properties = [
{
displayName: 'Api Key',
name: 'apiKey',
type: 'string',
default: '',
typeOptions: {
password: true,
}
},
{
displayName: 'Domain',
name: 'domain',
type: 'string',
default: 'https://api.webagent.cloud',
},
];
this.authenticate = {
type: 'generic',
properties: {
headers: {
'x-api-key': '={{$credentials.apiKey}}',
},
},
};
this.test = {
request: {
baseURL: '={{$credentials?.domain}}',
url: '/me',
},
};
}
}
exports.WebagentApi = WebagentApi;
//# sourceMappingURL=WebagentApi.credentials.js.map