def nma(description, apikey, event="JCVI: Job Monitor", priority=0):
    """
    notifymyandroid.com API

    <http://www.notifymyandroid.com/api.jsp>
    """
    assert -2 <= priority <= 2, \
            "Priority should be an int() between -2 and 2"

    conn = HTTPSConnection("www.notifymyandroid.com")
    conn.request("POST", "/publicapi/notify",
        urlencode({
            "apikey": apikey,
            "application": "python notify",
            "event": event,
            "description": description,
            "priority": priority,
        }), { "Content-type": "application/x-www-form-urlencoded" })
    conn.getresponse()
def nma ( description , apikey , event = "JCVI: Job Monitor" , priority = 0 ) : assert - 2 <= priority <= 2 , "Priority should be an int() between -2 and 2" conn = HTTPSConnection ( "www.notifymyandroid.com" ) conn . request ( "POST" , "/publicapi/notify" , urlencode ( { "apikey" : apikey , "application" : "python notify" , "event" : event , "description" : description , "priority" : priority , } ) , { "Content-type" : "application/x-www-form-urlencoded" } ) conn . getresponse ( )
notifymyandroid.com API

    <http://www.notifymyandroid.com/api.jsp>