Skip to content

Commit ea26f03

Browse files
committed
Update index.js
1 parent 2de6e19 commit ea26f03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ const fs = require('fs')
22
const { Base } = require('../lib');
33

44
const config = {
5-
server: 'https://dev.seatable.cn',
6-
APIToken: 'e16880c58426d59d698143f1dfb8abc8bd5d2ecc'
5+
server: 'http://127.0.0.1',
6+
APIToken: 'acdf4e21d4a0f36686848d81523a2df4ab67bf2d'
77
};
88

99

1010
async function testAPI() {
1111
const base = new Base(config);
1212
await base.auth();
13-
const data = await base.deleteTable('Sheet1');
14-
console.log(data, 'ssssssss')
15-
// fs.writeFileSync('./abc.json', JSON.stringify(data, null, 2))
13+
const data = await base.query('select * from Table2');
14+
fs.writeFileSync('./abc.json', JSON.stringify(data, null, 2))
1615
}
1716

1817
testAPI();
18+

0 commit comments

Comments
 (0)