From 1445a9908ddd6594924c5ab46c2aa3410ea7d1fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 4 Oct 2018 09:19:48 +0200 Subject: [PATCH] new: Add direct call to just post data on a URL --- pymisp/api.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index a673a25..eeba111 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -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 ############### # ##############################################