Appearance
记录
查询记录。
const TOKEN = '123456';
const BASE_ID = 'ABC123';
const TABLE_ID = 'grid-123456';
const url = 'https://coda.io/apis/v1/docs/' + BASE_ID + '/tables/' + TABLE_ID + '/rows';
const options = {method: 'GET', headers: {Authorization: 'Bearer ' + TOKEN}};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data.items);
} catch (error) {
console.error(error);
}