Skip to content

Instantly share code, notes, and snippets.

@armiiller
Last active May 18, 2020 16:19
Show Gist options
  • Save armiiller/ed027cf7f6505fff733fcf6dfdf07c69 to your computer and use it in GitHub Desktop.
Save armiiller/ed027cf7f6505fff733fcf6dfdf07c69 to your computer and use it in GitHub Desktop.
import requests
pload = {
'event_type':'create',
'Id':'monitor-1',
'Title': 'Monitor 1 is Down for 60s',
'Description': 'Please check the monitor @ https://this.url'
}
r = requests.post('https://api.pagertree.com/int_xxxxxxx',data = pload)
print(r.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment