Skip to content

Commit

Permalink
chg: Add few more calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Jun 20, 2018
1 parent 65ce4c9 commit 7569972
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion docs/tutorial/PyMISP Objects.ipynb
Expand Up @@ -146,7 +146,7 @@
"metadata": {},
"outputs": [],
"source": [
"attribute.add_tag('tlp:amber')\n",
"attribute_second.add_tag('tlp:amber')\n",
"\n",
"print(attribute_second.to_json())"
]
Expand Down Expand Up @@ -291,6 +291,45 @@
"print(bin_obj.references[0].to_json())"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Change creator"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from pymisp import MISPOrganisation\n",
"orgc = MISPOrganisation()\n",
"orgc.name = 'bazbaz'\n",
"orgc.id = 15\n",
"orgc.uuid = '5888a98d-a7e8-4183-94bb-4d19950d210f'\n",
"# NOTE: Pushing this object will only work if the user has sync right (if not, the orgc key will be ignored)\n",
"event.Orgc = orgc"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Mark event as published"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"event.publish()\n",
"print(event.published)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 7569972

Please sign in to comment.