From 73b56a61da40db9b1d26c3bf42ef5ef15a32ecb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Fri, 11 Sep 2020 11:09:14 +0200 Subject: [PATCH] fix: few outdated calls in the tutorial --- docs/tutorial/FullOverview.ipynb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/tutorial/FullOverview.ipynb b/docs/tutorial/FullOverview.ipynb index fae177b..ad3323f 100644 --- a/docs/tutorial/FullOverview.ipynb +++ b/docs/tutorial/FullOverview.ipynb @@ -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,