fix: few outdated calls in the tutorial

pull/633/head
Raphaël Vinot 2020-09-11 11:09:14 +02:00
parent 9c48079d88
commit 73b56a61da
1 changed files with 9 additions and 9 deletions

View File

@ -1012,7 +1012,7 @@
"existing_event.add_object(mispObject)\n",
"print(existing_event.to_json())\n",
"\n",
"res = misp.update(existing_event)\n",
"res = misp.update_event(existing_event)\n",
"existing_event = MISPEvent()\n",
"existing_event.load(res)\n",
"print(existing_event.to_json())"
@ -1071,7 +1071,7 @@
"event_obj.threat_level_id = 1\n",
"event_obj.analysis = 1\n",
"event_obj.info = \"Event from notebook 2\"\n",
"event = misp.add_event(event_obj)\n",
"event = misp.add_event(event_obj, pythonify=True)\n",
"event_id = event.id\n",
"print(\"Event id: %s\" % event_id)"
]
@ -1171,7 +1171,7 @@
"attribute.category = category\n",
"attribute.to_ids = to_ids\n",
"\n",
"attribute_to_change = misp.add_attribute(event_id, attribute)\n",
"attribute_to_change = misp.add_attribute(event_id, attribute, pythonify=True)\n",
"print(attribute_to_change.id, attribute_to_change)"
]
},
@ -1386,7 +1386,7 @@
"metadata": {},
"outputs": [],
"source": [
"misp.get_sharing_groups()"
"misp.sharing_groups()"
]
},
{
@ -1402,7 +1402,7 @@
"metadata": {},
"outputs": [],
"source": [
"misp.get_users_list()"
"misp.users()"
]
},
{
@ -1427,7 +1427,7 @@
"metadata": {},
"outputs": [],
"source": [
"misp.get_organisations_list()"
"misp.organisations()"
]
},
{
@ -1443,7 +1443,7 @@
"metadata": {},
"outputs": [],
"source": [
"misp.get_roles_list()"
"misp.roles()"
]
},
{
@ -1459,7 +1459,7 @@
"metadata": {},
"outputs": [],
"source": [
"misp.get_feeds_list()"
"misp.feeds(pythonify=True)"
]
},
{
@ -1495,7 +1495,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.5"
"version": "3.8.2"
}
},
"nbformat": 4,