Appearance
库
查看所有库。
const TOKEN = '123456';
const url = 'https://vika.cn/fusion/v1/spaces';
const options = {method: 'GET', headers: {Authorization: 'Bearer ' + TOKEN}};
try {
const response = await fetch(url, options);
const json = await response.json();
console.log(json.data);
} catch (error) {
console.error(error);
}查看单库所有表等。
const TOKEN = '123456';
const BASE_ID = 'spc123456';
const url = 'https://vika.cn/fusion/v1/spaces/' + BASE_ID + '/nodes';
const options = {method: 'GET', headers: {Authorization: 'Bearer ' + TOKEN}};
try {
const response = await fetch(url, options);
const json = await response.json();
console.log(json.data);
} catch (error) {
console.error(error);
}