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.

pull/95/head
obsidianpentesting 2017-07-06 16:06:59 -05:00
parent 10d5d629f4
commit c18d5cac6d
1 changed files with 10 additions and 0 deletions

View File

@ -1501,6 +1501,16 @@ class PyMISP(object):
response = session.get(url)
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 ########
# ###########################