We the People API
Node wrapper for thenode-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 petitionGET
searchPetitions - fetches petitions matching the supplied query objectGET
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