Skip to content

Commit

Permalink
Merge pull request #328 from kirzaks/master
Browse files Browse the repository at this point in the history
Check if IOC values are in warninglist
  • Loading branch information
Rafiot committed Feb 1, 2019
2 parents ac4f286 + 13ffef2 commit 1e5e00b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pymisp/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1942,6 +1942,12 @@ def disable_warninglist(self, warninglist_id):
"""Disable a warninglist by id."""
return self.toggle_warninglist(warninglist_id=warninglist_id, force_enable=False)

def check_warninglist(self, value):
"""Check if IOC values are in warninglist"""
url = urljoin(self.root_url, '/warninglists/checkValue')
response = self._prepare_request('POST', url, json.dumps(value))
return self._check_response(response)

# ############## NoticeLists ##################

def get_noticelists(self):
Expand Down

0 comments on commit 1e5e00b

Please sign in to comment.