'Send a Notifymyandroid notification'

def notify(self, title, message, config):

    notification = {u'event': title, u'description': message, u'application': config.get(u'application'), u'priority': config.get(u'priority'), u'developerkey': config.get(u'developer_key'), u'url': config.get(u'url')}
    if isinstance(config[u'api_key'], list):
        config[u'api_key'] = u','.join(config[u'api_key'])
    notification[u'apikey'] = config[u'api_key']
    if config.get(u'html'):
        notification[u'content-type'] = u'text/html'
    try:
        response = requests.post(NOTIFYMYANDROID_URL, data=notification)
    except RequestException as e:
        raise PluginWarning(e.args[0])
    request_status = ET.fromstring(response.content)
    error = request_status.find(u'error')
    if (error is not None):
        raise PluginWarning(error.text)
    else:
        success = request_status.find(u'success').attrib
        log.debug(u'notifymyandroid    notification    sent.    Notifications    remaining    until    next    reset:    %s.    Next    reset    will    occur    in    %s    minutes', success[u'remaining'], success[u'resettimer'])
