Census v0.1.0 Census.Adapter protocol
Protocol for implementing adapters for different client types
Summary
Functions
Make a census api request given a client and query parameters
Types
t :: term
Functions
Specs
fetch(client :: Census.Client.t, params :: Keyword.t) ::
{:ok, Census.Response.t} |
{:error, String.t}
Make a census api request given a client and query parameters.
Params:
get
foreach
within
(optional)
Usage:
iex> client = Census.Client.new("YOUR_API_KEY")
iex> {:ok, response} = Census.Adapter.fetch(client, get: "NAME", foreach: "COUNTY:*", within: "STATE:*")