ExAirtable.Table behaviour (ExAirtable v0.1.0) View Source
The Table
behaviour allows you to define your own modules that use Airtables.
It is a thin wrapper around Service
, but often more convenient to use.
Examples
defmodule MyTable do
use ExAirtable.Table
def base, do: %ExAirtable.Config.Base{
id: "your base ID",
api_key: "your api key"
}
def name, do: "My Airtable Table Name"
end
iex> MyTable.list()
%ExAirtable.Airtable.List{}
iex> MyTable.retrieve("rec123")
%ExAirtable.Airtable.Record{}
Link to this section Summary
Link to this section Callbacks
Specs
base() :: ExAirtable.Config.Base.t()
A valid %ExAirtable.Config.Base{} config for your table
Specs
name() :: String.t()
The name of your table within Airtable