# Airship
Use [Hex] and [Hexdocs] to include and use.
[Hex]: https://hex.pm/packages/airship
[Hexdocs]: https://hexdocs.pm/airship
Spin up as needed:
```elixir
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:
```elixir
{ 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:
```elixir
{ Airship.Base,
~w[ AIRTABLE_BASE AIRTABLE_KEY ]
|> Enum.map(&System.get_env/1)
|> List.to_tuple
}
```
You can begin using, as in:
```elixir
Airship.Base.all("Menu", filterByFormula: "Promotion")
```
The functions in this module are a simple `req` wrapper;
so you can [reference the AirTable API][api] for usage.
[api]: https://airtable.com/developers/web/api/introduction