Python - Pushover Notifications
Feb 23, 2016

Pushover is an app available for Android and iOS. It allows you to receive push notifications on your phone from your own code. Certain monitoring services such as UptimeRobot support Pushover. Another option is to use email, but I prefer this solution.

import requests

app_token = 'YOUR_APP_TOKEN'
user_token = 'YOUR_USER_TOKEN'

def alert(title, message, priority='1'):
	data = {'token': app_token, 'user': user_token, 'title': title, 'message': message, 'priority': priority}
	r ='', data=data, headers={'User-Agent': 'Python'})

The API can be found here: