Skip to content

Instantly share code, notes, and snippets.

Last active April 5, 2021 13:54
What would you like to do?
let poemFragments = {
noun: [],
verb: [],
adjective: [],
emotion: [],
var Airtable = require('airtable');
var base = new Airtable({apiKey: 'keyzwwUOzmCKuXxbq'}).base('appIQorANZvYFOqnN');
base('Poem fragments').select({}).eachPage(gotPageOfFragments, gotAllFragments);
function gotPageOfFragments(records, fetchNextPage) {
// fetch any more pages if they exist
function gotAllFragments(err) {
// report an error, you'd want to do something better than this in production
if (err) {
console.log("error loading fragments");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment