def pushbullet(body, apikey, device, title="JCVI: Job Monitor", type="note"):
    """
    pushbullet.com API

    <https://www.pushbullet.com/api>
    """
    import base64

    headers = {}
    auth = base64.encodestring("{0}:".format(apikey)).strip()
    headers['Authorization'] = "Basic {0}".format(auth)
    headers['Content-type'] = "application/x-www-form-urlencoded"

    conn = HTTPSConnection("api.pushbullet.com".format(apikey))
    conn.request("POST", "/api/pushes",
        urlencode({
            "iden": device,
            "type": "note",
            "title": title,
            "body": body,
            }), headers)
    conn.getresponse()