dropbox / pygerduty

A Python library for PagerDuty.
MIT License
163 stars 72 forks source link

Adding support for Addons #76

Closed LaurentKol closed 4 years ago

LaurentKol commented 5 years ago

This simple change allows to update Add-ons. Tested with:

client = pygerduty.v2.PagerDuty(pagerduty_api_token)
my_addon = client.addons.show(addon_id)
service_ref = [ { "type": "service_reference", "id":service_id } ]
client.addons.update(my_addon.id,services=service_ref)
cugini-dbx commented 5 years ago

Hey thanks for contributing, and sorry for the late review. Could you please add some tests for this? See examples in the test directory, thanks!

LaurentKol commented 4 years ago

Hi @cugini-dbx, sorry for late follow-up, I added some tests for the endpoints we use.

cugini-dbx commented 4 years ago

Merged, Thanks!