Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
r350178982 committed Dec 22, 2023
1 parent 2de6e19 commit ea26f03
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ const fs = require('fs')
const { Base } = require('../lib');

const config = {
server: 'https://dev.seatable.cn',
APIToken: 'e16880c58426d59d698143f1dfb8abc8bd5d2ecc'
server: 'http://127.0.0.1',
APIToken: 'acdf4e21d4a0f36686848d81523a2df4ab67bf2d'
};


async function testAPI() {
const base = new Base(config);
await base.auth();
const data = await base.deleteTable('Sheet1');
console.log(data, 'ssssssss')
// fs.writeFileSync('./abc.json', JSON.stringify(data, null, 2))
const data = await base.query('select * from Table2');
fs.writeFileSync('./abc.json', JSON.stringify(data, null, 2))
}

testAPI();

0 comments on commit ea26f03

Please sign in to comment.