Airtable / airtable.js

Airtable javascript client
MIT License
1.98k stars 404 forks source link

Listing Bases and Tables #60

Open sumit0k opened 6 years ago

sumit0k commented 6 years ago

How can you programmatically list bases or tables? For example, what do I do if I don't know ahead of time what base to use and need to select it from a list of available bases?

Base has a property tables but it is undefined, which can be seen here.

var Airtable = require('airtable');
var base = new Airtable({apiKey: 'keyXXXXXXXXXX'}).base('appphXXXXXXXX');
console.log(base.tables);

>>undefined

But base('Base table') is working as expected.

proweb commented 5 years ago

+1

ian-weatherhogg-refractiv commented 4 years ago

my users want to be able to list their bases and tables so they can choose one to embed in their OverDRIVE sites...

joewiz commented 4 years ago

See this nice hint regarding listing tables (not bases): https://github.com/Airtable/airtable.js/issues/12#issuecomment-349987627.

joshmorel commented 4 years ago

+1 to request. Also the always undefined tables attribute on the baseFn until this is implement is just confusing.