Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.38 KB

README.md

File metadata and controls

44 lines (33 loc) · 1.38 KB

ExClearbit

Elixir CI Module Version Hex Docs Total Download License Last Updated

A lightweight Elixir client for Clearbit.

Installation

First, add ExClearbit to your mix.exs file:

def deps do
  [{:ex_clearbit, "~> 0.1.0"}]
end

then run $ mix deps.get. Now add the :ex_clearbit application as your application dependency:

def application do
  [applications: [:ex_clearbit]]
end

Before 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")

Usage

iex> ExClearbit.person("alex@alexmaccaw.com")