Census v0.1.3 Census.Adapter protocol View Source

Protocol for implementing adapters for different client types

Link to this section Summary

Functions

Make a census api request given a client and query parameters

Link to this section Types

Link to this section Functions

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:*")