Airship

Use Hex and Hexdocs to include and use.

Spin up as needed:

Airship.Base.launch(
  System.get_env("AIRTABLE_BASE"),
  System.get_env("AIRTABLE_KEY")
)

To spin up at app-launch, add to the application.ex as a supervised process:

{ Airship.Base, { System.get_env("AIRTABLE_BASE"), System.get_env("AIRTABLE_KEY") }

If you use the environment variables AIRTABLE_BASE and AIRTABLE_KEY, here's a fun sequence:

{ Airship.Base,
  ~w[ AIRTABLE_BASE AIRTABLE_KEY ]
  |> Enum.map(&System.get_env/1)
  |> List.to_tuple
}

You can begin using, as in:

Airship.Base.all("Menu", filterByFormula: "Promotion")

The functions in this module are a simple req wrapper; so you can reference the AirTable API for usage.