mithereal / ex_gasbuddy

fetch gas rates from gasbuddy using elixir

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ExGasbuddy

Tool to grab gasbuddy.com rates

Installation

If available in Hex, the package can be installed by adding ex_gasbuddy to your list of dependencies in mix.exs:

def deps do
  [
    {:ex_gasbuddy, "~> 0.1.1"}
  ]
end

Usage

iex> zip = "85711"
iex> station_id = "177845"
iex> {_status, data, _headers} = ExGasbuddy.search(zip)
iex> {_status, data, _headers} = ExGasbuddy.fetch(station_id)

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_gasbuddy.

About

fetch gas rates from gasbuddy using elixir


Languages

Language:Elixir 100.0%