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.
The schemas defining the objects accepted by these methods can be found in lib/api_schema.js
GET
getPetition - fetches a single petitionGET
searchPetitions - fetches petitions matching the supplied query objectGET
getSignatures - fetches signatures on a specific petition matching the supplied query object
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
GET
getValidations - gets the validations associated with the supplied petition