Skip to content

Instantly share code, notes, and snippets.

@theGove
Last active February 21, 2022 15:01
Show Gist options
  • Save theGove/4e34838c0f0798fc9ee0b4f1ecf6fc6f to your computer and use it in GitHub Desktop.
Save theGove/4e34838c0f0798fc9ee0b4f1ecf6fc6f to your computer and use it in GitHub Desktop.
JADE module to pull data from Airtable
async function airtable_query(){
await jade.use("airtable_tools")
// infomration about where to place data
const sheet_name="MEMBER2"
const address="b2"
const token="YOUR API KEY GOES HERE"//https://airtable.com/account
const base_id= "appACNRk6PmArvtj1"
const table="member"
const fields=""//["FirstName","LastName","Email"]
const filter_formula="FirstName!='Katy'"
const data=await airtable_tools.query(base_id, table, token, fields, filter_formula, sheet_name, address)
console.log("data",data)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment