From 4f30971d613e3122707aefdde62260cc079347d5 Mon Sep 17 00:00:00 2001 From: Tournesol Date: Sat, 2 Nov 2024 00:51:38 +0100 Subject: [PATCH 1/2] Update webhooks.md stream_title_updated --- content/thirdparty/webhooks.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/content/thirdparty/webhooks.md b/content/thirdparty/webhooks.md index dd12397dbe..8148af163f 100644 --- a/content/thirdparty/webhooks.md +++ b/content/thirdparty/webhooks.md @@ -171,6 +171,16 @@ Note: the field `user` in the chat was introduced with `v0.0.8`. Before `v0.0.8` "eventData": { "id": "DmeikEf4Rz", "name": "New Owncast Server", + "status": { + "lastConnectTime": null, + "lastDisconnectTime": "2024-10-24T22:35:05Z", + "versionNumber": "0.1.3", + "streamTitle": "Test stream title change", + "viewerCount": 0, + "overallMaxViewerCount": 7, + "sessionMaxViewerCount": 2, + "online": false + }, "streamTitle": "Test stream title change", "summary": "This is a new live video streaming server powered by Owncast.", "timestamp": "2023-03-27T21:50:10.121391094-07:00" @@ -222,4 +232,4 @@ If you want to test how webhooks work before you write any code, create a test e ### Test webhooks from a production instance of Owncast -If you already have an Owncast instance running in production, listening to the world wide web, you might want to make use [ngrok](https://ngrok.com/) to tunnel HTTP requests to your local development environment. \ No newline at end of file +If you already have an Owncast instance running in production, listening to the world wide web, you might want to make use [ngrok](https://ngrok.com/) to tunnel HTTP requests to your local development environment. From ae44fa6588512c2bdd605744e306e744abc054e9 Mon Sep 17 00:00:00 2001 From: Tournesol Date: Sat, 2 Nov 2024 13:53:21 +0100 Subject: [PATCH 2/2] Update webhooks.md visibility-update update --- content/thirdparty/webhooks.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/content/thirdparty/webhooks.md b/content/thirdparty/webhooks.md index 8148af163f..f3af821686 100644 --- a/content/thirdparty/webhooks.md +++ b/content/thirdparty/webhooks.md @@ -195,17 +195,16 @@ Note: the field `user` in the chat was introduced with `v0.0.8`. Before `v0.0.8` "type": "VISIBILITY-UPDATE", "eventData": { "id": "zqGupt7VR", - "ids": [ + "MessageIDs": [ "-Zzltt74g", "rvd2ppn4g" ], "timestamp": "2022-09-19T12:44:28.225779601+02:00", - "type": "VISIBILITY-UPDATE", - "visible": false + "Visible": false } } ``` -- `ids` is a list of IDs of messages that had their visibility changed. +- `MessageIDs` is a list of IDs of messages that had their visibility changed. ### clientId vs. user.id