此網站為免費資源,且不提供任何擔保;無論是商業性或適合特定用途的擔保均不予提供。
本站除另有標示外,程式碼以 MIT 授權條款 釋出,內容以創用 CC 姓名標示 4.0 或更新版授權條款釋出。詳見:Creative Commons Attribution 4.0 國際授權。
本站資源、文案、設計、程式,皆由 UX 四神湯夥伴、深夜食堂小隊長小隊員、和來自各方的設計師以開源協作的方式完成。
var Airtable = require('airtable');
var base = new Airtable({apiKey: 'YOUR_API_KEY'}).base('appevZDN717wr58K6');
base('文章').select({
// Selecting the first 3 records in Grid view:
maxRecords: 3,
view: "Grid view"
}).eachPage(function page(records, fetchNextPage) {
// This function (`page`) will get called for each page of records.
records.forEach(function(record) {
console.log('Retrieved', record.get('標題'));
});
// To fetch the next page of records, call `fetchNextPage`.
// If there are more records, `page` will get called again.
// If there are no more records, `done` will get called.
fetchNextPage();
}, function done(err) {
if (err) { console.error(err); return; }
});