@classmethod
def publish(cls, eventid, event, data):
    for (id, sub) in Subscriptions.store.items():
        if match_any_if_any(event, sub.events):
            requests.post(sub['endpoint'], headers={'Content-Type': 'application/json'}, data=dumps(dict(eventType=event, cloudEventsVersion='0.1', contentType='application/vnd.omg.object+json', eventID=eventid, data=data)))
@classmethod
def publish(cls, eventid, event, data):
    for (id, sub) in Subscriptions.store.items():
        if match_any_if_any(event, sub.events):
            requests.post(sub['endpoint'], headers={'Content-Type': 'application/json'}, data=dumps(dict(eventType=event, cloudEventsVersion='0.1', contentType='application/vnd.omg.object+json', eventID=eventid, data=data)))