Added update_galaxies and update_taxonomies

pull/281/head
netjinho 2018-09-28 18:14:27 +02:00
parent 01899ecfb7
commit ef087a9572
1 changed files with 10 additions and 0 deletions

View File

@ -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 ##############
# ##############################################