controlshift / action-network-rest

Ruby client for interacting with the ActionNetwork REST API
MIT License
8 stars 4 forks source link

Add support for petition endpoints #3

Closed lavaturtle closed 4 years ago

lavaturtle commented 4 years ago

This adds methods for interacting with the petitions endpoints of the ActionNetwork API.

Create petition

client.petitions.create({title: 'Do the Thing!', origin_system: 'ControlShift'}, creator_person_id: 'abc-123-4567')

Get petition

client.petitions.get(petition_id)

Update petition

client.petitions.update(petition_id, {description: 'updated description'})