This package gives a very small HTTPoison interface for the Google Civic Information API.
GoogleCivic.representatives "60601"
# same as
GoogleCivic.get "/representatives?address=60601"
Be sure to set GOOGLE_CIVIC_API_KEY
as an environment variable or in your config.exs
:
config :google_civic,
api_key: System.get_env("GOOGLE_CIVIC_API_KEY")
Docs can be found at https://hexdocs.pm/google_civic.
This package can be installed by adding google_civic
to your list of dependencies in mix.exs
:
def deps do
[{:google_civic, "~> 0.1.0"}]
end