Published
Edited
Apr 5, 2019
Fork of Airtable
1 fork
Importers
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
aUtils = {
return {
record: {
getField: getField,
flatten: flattenRecord
},
collection: {
findRecordById,
flatten: flattenCollection
}
};
}
Insert cell
Insert cell
Airtable = {
class Airtable {
constructor(apiKey) {
if (apiKey.length < 1) {
throw new Error("cannot use airtable API without an API key");
}

this.apiKey = apiKey;
}

addBase(name) {
return baseId => {
this[name] = new Base(baseId, apiKey);
return this[name];
};
}
}

return Airtable;
}
Insert cell
Base = {
class Base {
constructor(id, apiKey) {
this.apiKey = apiKey;
}

addTable(name) {
this[name] = new Table(this.id, this.apiKey, name);
return this[name];
}
}

return Base;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// jqParam = require("jquery-param")
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more