Skip to content

记录

查询记录。

const TOKEN = 'pat123456';
const BASE_ID = 'app123456';
const TABLE_NAME = 'kv';

const url = 'https://api.airtable.com/v0/' + BASE_ID + '/' + TABLE_NAME;
const options = {method: 'GET', headers: {Authorization: 'Bearer ' + TOKEN}};

try {
  const response = await fetch(url, options);
  const data = await response.text();
  console.log(data);
} catch (error) {
  console.error(error);
}

联系 math@baima.site