controlshift / action-network-rest

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

Add support for create/update/get Signature #5

Closed lavaturtle closed 4 years ago

lavaturtle commented 4 years ago

This adds support for interacting with the Signature endpoints of the Action Network API.

GET signature

client.petitions(petition_id).signatures.get(signature_id)

Update signature

client.petitions(petition_id).signatures.update(signature_id, {comments: 'my comments'})

Create signature

client.petitions(petition_id).signatures.create({identifiers: ['controlshift:123'],
                                                 comments: 'my comments',
                                                 person: {given_name: 'Alice', email_addresses: [{address: 'alice@example.com'}]}},
                                                tags: ['volunteers'])
lavaturtle commented 4 years ago

hmm, interesting idea! i'll tinker with it and see if it's feasible

woodhull commented 4 years ago

It was totally a random idea, so if its a bunch of work, no big deal.