Giter Site home page Giter Site logo

govtrack-elixir's Introduction

Govtrack

Build Status Hex.pm

⛔️ DEPRECATED ⛔️

The GovTrack API was shutdown in December 2016


An elixir wrapper for the govtrack.us API that provides programmatic access to information about the U.S. Congress.

Installation

Available through Hex, and can be installed by:

  1. Adding govtrack to your list of dependencies in mix.exs:
def deps do
  [{:govtrack, "~> 0.7.3"}]
end
  1. Ensuring govtrack is initialized before your main elixir application:
def application do
  [applications: [:govtrack]]
end

Usage

This Govtrack module is meant to be a simple wrapper for the official govtrack.us API. The module automatically parses the JSON response and provides a few sensible defaults to common queries.

Supported Endpoints:

Basic Usage

Govtrack.bills        #=> Fetch all bills, ordered by most recently updated

Govtrack.bill(12700)  #=> Fetch information about a specific bill

Querying

An optional query parameter can be passed to all the supported endpoints to narrow the results. The specific query strings are dictated by the govtrack API.

Govtrack.roles([current: true, state: "NY"])    #=> Fetch all representatives for the State of New York.

govtrack-elixir's People

Contributors

walterbm avatar

Stargazers

wes avatar Yogi Patel avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.