new: Add direct call to just post data on a URL

pull/282/head
Raphaël Vinot 2018-10-04 09:19:48 +02:00
parent e52cd11832
commit 1445a9908d
1 changed files with 5 additions and 0 deletions

View File

@ -401,6 +401,11 @@ class PyMISP(object):
response = self._prepare_request('POST', url)
return self._check_response(response)
def direct_call(self, url, data):
'''Very lightweight call that posts a data blob (python dictionary) on the URL'''
response = self._prepare_request('POST', url, data)
return self._check_response(response)
# ##############################################
# ############### Event handling ###############
# ##############################################