Skip to content

Commit 202be2c

Browse files
committed
finally api working - crdentials can be checked
1 parent f439b15 commit 202be2c

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

credentials/AitableApi.credentials.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
export class AitableApi implements ICredentialType {
99
name = 'aitableApi';
1010
displayName = 'Aitable API';
11-
documentationUrl = 'https://developers.aitable.ai/api/introduction';
11+
documentationUrl = 'https://developers.aitable.ai/api/reference/';
1212
properties: INodeProperties[] = [
1313
{
1414
displayName: 'API Token',
@@ -36,8 +36,8 @@ export class AitableApi implements ICredentialType {
3636
test: ICredentialTestRequest = {
3737
request: {
3838
baseURL: 'https://aitable.ai',
39-
url: '/fusion/v2/spaces',
39+
url: '/fusion/v1/spaces',
4040
method: 'GET',
4141
},
4242
};
43-
}
43+
}

index.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This is a CommonJS module that exports the node classes
2+
module.exports = {
3+
// Nodes
4+
Aitable: require('./dist/nodes/AitableNode/Aitable.node.js').Aitable,
5+
6+
// Credentials
7+
AitableApi: require('./dist/credentials/AitableApi.credentials.js').AitableApi,
8+
};
9+

n8n-nodes-aitable-0.1.0.tgz

17.3 KB
Binary file not shown.

nodes/AitableNode/Aitable.node.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import type {
66
} from 'n8n-workflow';
77
import { NodeConnectionType, NodeOperationError } from 'n8n-workflow';
88

9-
export class AitableNode implements INodeType {
9+
export class Aitable implements INodeType {
10+
constructor() {
11+
// Initialize any necessary properties
12+
}
1013
description: INodeTypeDescription = {
1114
displayName: 'Aitable.ai',
1215
name: 'aitable',

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"name": "n8n-nodes-<...>",
2+
"name": "n8n-nodes-aitable",
33
"version": "0.1.0",
44
"description": "",
5+
"type": "commonjs",
56
"keywords": [
67
"n8n-community-node-package"
78
],

0 commit comments

Comments
 (0)