From 84270fad847232b1a8f5ac1635ed270401d36196 Mon Sep 17 00:00:00 2001 From: Luke Epp Date: Thu, 22 Sep 2016 08:58:39 -0700 Subject: [PATCH] Updated get_incident to create_incident_note --- REST_API_v2/Incidents/create_incident_note.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/REST_API_v2/Incidents/create_incident_note.py b/REST_API_v2/Incidents/create_incident_note.py index 9ab48c0..e718722 100755 --- a/REST_API_v2/Incidents/create_incident_note.py +++ b/REST_API_v2/Incidents/create_incident_note.py @@ -38,7 +38,7 @@ INCIDENT_ID = 'PI8BBP5' CONTENT = 'Enter your note content here' -def get_incident(): +def create_incident_note(): url = 'https://api.pagerduty.com/incidents/' + INCIDENT_ID + '/notes' headers = { 'Accept': 'application/vnd.pagerduty+json;version=2', @@ -56,4 +56,4 @@ def get_incident(): print r.json() if __name__ == '__main__': - get_incident() + create_incident_note()