'Send a Pushalot notification'

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

    notification = {u'Title': title, u'Body': message, u'LinkTitle': config.get(u'url_title'), u'Link': config.get(u'url'), u'IsImportant': config.get(u'important'), u'IsSilent': config.get(u'silent'), u'Image': config.get(u'image'), u'Source': config.get(u'source'), u'TimeToLive': config.get(u'timetolive')}
    if (not isinstance(config[u'api_key'], list)):
        config[u'api_key'] = [config[u'api_key']]
    for key in config[u'api_key']:
        notification[u'AuthorizationToken'] = key
        try:
            requests.post(PUSHALOT_URL, json=notification)
        except RequestException as e:
            raise PluginWarning(repr(e))
