new: Add ZMQ publishing method

pull/105/head
Hannah Ward 2017-08-03 16:17:37 +01:00
parent 533b69d944
commit 394c312d0d
No known key found for this signature in database
GPG Key ID: 6F3BAD60DE190290
1 changed files with 6 additions and 0 deletions

View File

@ -357,6 +357,12 @@ class PyMISP(object):
response = session.delete(url)
return self._check_response(response)
def pushEventToZMQ(self, event_id):
session = self.__prepare_session()
url = urljoin(self.root_url, 'events/pushEventToZMQ/{}.json'.format(event_id))
response = session.post(url)
return self._check_response(response)
# ##############################################
# ############### Event handling ###############
# ##############################################