mirror of https://github.com/MISP/PyMISP
Simple function to cache all feeds at once. This is almost identical to fetch_feed. In the future, I would like to specify the scope to include other values.
parent
10d5d629f4
commit
c18d5cac6d
|
@ -1501,6 +1501,16 @@ class PyMISP(object):
|
||||||
response = session.get(url)
|
response = session.get(url)
|
||||||
return self._check_response(response)
|
return self._check_response(response)
|
||||||
|
|
||||||
|
# ###########################
|
||||||
|
# ### Cache All Feeds ###
|
||||||
|
# ###########################
|
||||||
|
|
||||||
|
def cache_all_feeds(self):
|
||||||
|
session = self.__prepare_session()
|
||||||
|
url = urljoin(self.root_url, 'feeds/cacheFeeds/all')
|
||||||
|
response = session.post(url)
|
||||||
|
return self._check_response(response)
|
||||||
|
|
||||||
# ###########################
|
# ###########################
|
||||||
# ####### Deprecated ########
|
# ####### Deprecated ########
|
||||||
# ###########################
|
# ###########################
|
||||||
|
|
Loading…
Reference in New Issue