ExAirtable.Table behaviour (ExAirtable v0.2.3) 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

Callbacks

A valid %ExAirtable.Config.Base{} config for your table

The name of your table within Airtable

Link to this section Callbacks

Specs

A valid %ExAirtable.Config.Base{} config for your table

Specs

name() :: String.t()

The name of your table within Airtable