Webhook integration

We are currently integrating our third-party software using Milestone MIP SDK, and we’re encountering issues with maintaining an active connection due to problems on our client’s servers. We are integrating using Milestone SDK via message receivers using the CommunicationFilter option. However, due to network issues on the client’s side, we are experiencing constant reconnections, making maintenance difficult.

To address this issue, we are looking to switch to a Webhook integration. We have reviewed your documentation and have successfully set up everything needed on the Milestone side (webhook, rule, etc.). However, we need guidance on integrating the webhook on our backend.

Specifically, after receiving a webhook, we need to know how to download an image from the provided ID or a specific timestamp. Previously, with MIP SDK, we were using EventSource and JPEGVideoSource, which had a method GetAtOrBefore(DateTime dateTime). Is there an option to receive an image via webhook or to call some REST API method to download an image by some parameters?

If available, could you provide an example of how to parse a webhook with C# and how to download an image?

We appreciate your assistance in resolving this issue promptly.

Thank you.

Best regards,

The Rest API does not currently have functionality to retrieves images or video.

Unfortunately, I have no experience with Webhooks_._ When you are saying that you get the camera id and the time my best advice is actually then to re-use the code you have utilizing JPEGVideoSource.