Census v0.1.2 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
Functions
fetch(client, params)
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:*")