From 0a1fc8b2a02fa0811aee24712484c06d68e73f7d Mon Sep 17 00:00:00 2001 From: Christian Boulanger <info@bibliograph.org> Date: Wed, 16 Oct 2024 22:30:03 +0200 Subject: [PATCH] Fix --- hedgedoc/hedgedoc-api.ipynb | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/hedgedoc/hedgedoc-api.ipynb b/hedgedoc/hedgedoc-api.ipynb index aab35ab..a80ea3f 100644 --- a/hedgedoc/hedgedoc-api.ipynb +++ b/hedgedoc/hedgedoc-api.ipynb @@ -89,7 +89,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 18, "metadata": {}, "outputs": [ { @@ -98,16 +98,16 @@ "text": [ "Uploading images:\n", " - https://pad.gwdg.de/uploads/b3dce952-95c4-4143-a09e-a32cddb5168e.png\n", - " --> http://localhost:3000/uploads/2b6965db-ffb9-4e9f-b893-3c76a6b522ab.png\n" + " --> http://localhost:3000/uploads/2e0afcc6-6c17-49b7-9b0f-075340b76852.png\n" ] }, { "data": { "text/plain": [ - "'http://localhost:3000/IWxjqEXJT5SyeQAgX-fEEw'" + "'http://localhost:3000/c6tyksPtRrus_iBdLFLX2A'" ] }, - "execution_count": 17, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -134,6 +134,27 @@ "# uplaod note with new image urls\n", "client2.create_note(markdown) " ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'http://localhost:3000/la4abXOCTO2vTTRFwwIHIQ'" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# or using the dedicated API method\n", + "client2.import_note(client1, 'wOsgnXCdR9qxkNn1-RyV7g' )" + ] } ], "metadata": { -- GitLab