PagerDuty / pdpyras

Low-level PagerDuty REST/Events API client for Python
MIT License
129 stars 29 forks source link

Use routing key in body instead of X-Routing-Key for EventAPISession #54

Closed markafarrell closed 3 years ago

markafarrell commented 3 years ago

Fixes #53

Corrects EventAPISession to use routing_key in JSON body instead of using X-Routing-Key header.

As per https://developer.pagerduty.com/docs/events-api-v2/trigger-events/

Deconstrained commented 3 years ago

Thank you! X-Routing-Key is an internal feature, but nevertheless it's a good idea to follow the public API documentation for numerous reasons.