Last active
March 15, 2019 15:22
-
-
Save bromiley/769bff696ff7fce6fe56e609c544130e to your computer and use it in GitHub Desktop.
Creating a TheHive task using Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open(sys.argv[1]) as f: | |
for line in f: | |
j = json.loads(line) | |
task = CaseTask( | |
title = j['title_data'], | |
description = j['description_data'], | |
group = j['group_data'] | |
) | |
api.create_case_task(<case_id>, task) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment