A lightweight Elixir client for Clearbit.
First, add ExClearbit to your mix.exs file:
def deps do
[{:ex_clearbit, "~> 0.1.0"}]
endthen run $ mix deps.get. Now add the :ex_clearbit application as your application dependency:
def application do
[applications: [:ex_clearbit]]
endBefore calling the API methods, add your API key to your config.exs file:
config :ex_clearbit, :config,
api_key: "YOUR_API_KEY"or, you can configure the client at runtime:
ExClearbit.configure(api_key: "YOUR API_KEY")iex> ExClearbit.person("alex@alexmaccaw.com")