airtable-node
Node wrapper for Airtable API
Installation
$ npm i airtable-node --save
Usage
const Airtable = ; const airtable = apiKey: 'xxx' airtable airtable
Methods
Airtable({ apiKey, base, table, view })
- required: apiKey
- all other parameters can be set via chaining
Example
const airtable = apiKey base table view
Airtable.list(params)
Airtable.list returns a promise.
Example
const airtable = apiKey base table view airtable
Airtable.update(id, { fields })
Example
const airtable = apiKey base table const id = 'airtable record id'const fields = some_field_name: 'some value' airtable
Airtable.retrieve(id)
- required: id
const airtable = apiKey base table const id = 'airtable record id' airtable
Airtable.delete(id)
- required: id
Example
const airtable = apiKey base tableconst id = 'airtable record id' airtable
License
MIT © Ben