n8n-nodes-apitable
Version:
Apitable integration for n8n
44 lines • 1.34 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApitableApi = void 0;
class ApitableApi {
constructor() {
this.name = 'aitableApi';
this.displayName = 'Apitable API';
this.documentationUrl = 'https://developers.aitable.ai/api/quick-start';
this.properties = [
{
displayName: "Server URL",
name: "url",
placeholder: "https://aitable.ai",
type: "string",
default: "https://aitable.ai",
required: true,
},
{
displayName: 'API Token',
name: 'apiToken',
type: 'string',
typeOptions: { password: true },
default: '',
required: true,
},
];
this.authenticate = {
type: "generic",
properties: {
headers: {
"Authorization": "=Bearer {{$credentials.apiToken}}",
},
},
};
this.test = {
request: {
baseURL: "={{$credentials.url}}/fusion/v1",
url: "/spaces",
},
};
}
}
exports.ApitableApi = ApitableApi;
//# sourceMappingURL=ApitableApi.credentials.js.map