mirror of https://github.com/MISP/PyMISP
Added update_galaxies and update_taxonomies
parent
01899ecfb7
commit
ef087a9572
|
@ -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 ##############
|
||||
# ##############################################
|
||||
|
|
Loading…
Reference in New Issue