From ef087a9572e2afb3a52de28df2ffe6cfaf878472 Mon Sep 17 00:00:00 2001 From: netjinho Date: Fri, 28 Sep 2018 18:14:27 +0200 Subject: [PATCH] Added update_galaxies and update_taxonomies --- pymisp/api.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pymisp/api.py b/pymisp/api.py index c7c7111..22da009 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -1685,6 +1685,11 @@ class PyMISP(object): response = self._prepare_request('GET', url) return self._check_response(response) + def update_taxonomies(self): + url = urljoin(self.root_url, '/taxonomies/update') + response = self._prepare_request('POST', url) + return self._check_response(response) + # ############## WarningLists ################## def get_warninglists(self): @@ -1719,6 +1724,11 @@ class PyMISP(object): response = self._prepare_request('GET', url) return self._check_response(response) + def update_galaxies(self): + url = urljoin(self.root_url, '/galaxies/update') + response = self._prepare_request('POST', url) + return self._check_response(response) + # ############################################## # ############### Non-JSON output ############## # ##############################################