Merge branch 'master' of https://github.com/netjinho/PyMISP into netjinho-master

pull/282/head
Raphaël Vinot 2018-09-29 15:17:17 -04:00
commit 1e7f7b783e
1 changed files with 10 additions and 0 deletions

View File

@ -1688,6 +1688,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):
@ -1722,6 +1727,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 ##############
# ##############################################