npm

Need private packages and team management tools?Check out npm Orgs. »

openstates

0.0.1 • Public • Published

node-openstates

A node.js wrapper for the Sunlight Foundation's Open States API.

Check out their docs here.

Installation

npm install openstates

Usage

var OpenStates = require('./openstates');

var openstates = new OpenStates(apiKey);

openstates.legDetail('NCL000173', function(err, json) {
  if (err) throw err;
  console.log(json.full_name);
});

// Roger West

There is a method for each Open States endpoint. Response is a JSON object.

License

MIT

Keywords

none

install

npm i openstates

Downloadsweekly downloads

2

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability