Skip to content

ameensol/node-openstates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published