wethepeople
v0.1.0
Published
Node wrapper for the White House's We the People API
Downloads
13
Maintainers
Readme
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