Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A node.js wrapper for the Sunlight Foundation Open States API
JavaScript
branch: master

Merge pull request #2 from Med116/master

added method to get a bill by its unique id, as a shortcut
latest commit df747c88e2
@ameensol authored
Failed to load latest commit information.
.gitignore
.npmignore
README.md
examples.js
openstates.js
package.json bump version

README.md

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

Something went wrong with that request. Please try again.