Skip to content

Commit 1a97a11

Browse files
author
Matt Sokoloff
committed
webhook tested in colab
1 parent 4a6e044 commit 1a97a11

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/project_configuration/webhooks.ipynb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@
277277
" tunnel = tunnel[0] #Should only be one..\n",
278278
" public_url = tunnel['public_url']\n",
279279
"else:\n",
280-
" public_url = f\"http://{socket.gethostbyname(socket.getfqdn(socket.gethostname()))}\""
280+
" public_url = f\"http://{socket.gethostbyname(socket.getfqdn(socket.gethostname()))}\"\n",
281+
"print(public_url)"
281282
]
282283
},
283284
{
@@ -407,7 +408,10 @@
407408
"# url, topics, and status can all be updated\n",
408409
"updated_url = f\"{public_url}/webhook-endpoint\"\n",
409410
"print(updated_url)\n",
410-
"webhook.update(url=updated_url)"
411+
"webhook.update(url=updated_url)\n",
412+
"# Go to the following url and try one last time. \n",
413+
"# Any supported action should work (create, delete, update a label, or create, update, or delete a review)\n",
414+
"print(f\"https://app.labelbox.com/projects/{PROJECT_ID}\")"
411415
]
412416
},
413417
{

0 commit comments

Comments
 (0)