Node wrapper for the We the People API
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.md
package.json

README.md

Node wrapper for the We the People API

node-wethepeople provides a node wrapper for the White House's We the People API.

The wrapper is only configured to provide JSON responses.

API Methods

The schemas defining the objects accepted by these methods can be found in lib/api_schema.js

Petitions

  • GET getPetition - fetches a single petition
  • GET searchPetitions - fetches petitions matching the supplied query object
  • GET getSignatures - fetches signatures on a specific petition matching the supplied query object

Signatures

  • POST signPetition - signs a petition via the API, causing a validation email to be sent to the supplied email address by the WtP API to confirm signature

Validations

  • GET getValidations - gets the validations associated with the supplied petition