Hi All,
I'm juste trying to write a small script in node js to get a list of a db I have here in Airtable.
As the documentation said, I've used https://www.npmjs.com/package/airtable
and my code is as follow :
import Airtable from 'airtable';
const baseId = '****';
const tableIdOrName = '****';
Airtable.configure({ apiKey: **** })
const airtable = new Airtable({endpointUrl: `https://api.airtable.com/v0/${baseId}`});
console.log("airtable",airtable); ==>>> {}
console.log("airtable",airtable.getTable("tableIdOrName")); ==> "TypeError: airtable.getTable is not a function"
Thank you for your help!