node-wethepeople provides a node wrapper for the White House's We the People API.
The wrapper is only configured to provide JSON responses.
The schemas defining the objects accepted by these methods can be found in lib/api_schema.js
GETgetPetition - fetches a single petition
GETsearchPetitions - fetches petitions matching the supplied query object
GETgetSignatures - fetches signatures on a specific petition matching the supplied query object
POSTsignPetition - 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
GETgetValidations - gets the validations associated with the supplied petition