Skip to content

Instantly share code, notes, and snippets.


MDCollins mdcollins05

View GitHub Profile
mdcollins05 /
Last active Aug 29, 2015
Implemented a new method to remove unicode characters before passing the object to str(). Fixes encoding issues with strings in the details and body.
#!/usr/bin/env python
import requests
import sys
import json
from datetime import date, timedelta
#Your PagerDuty API key. A read-only key will work for this.
#The API base url, make sure to include the subdomain