hello guys, I'm caught between Webhook and cloud function, I don't know how to use Webhook.
THIS IS WHAT I INTEND TO DO:
currently in my app, when a user post a video to my 3rd party CDN, the 3rd party encodes the video and sends the status of the video via a Webhook, so I need to use the status of the video to update the appwrite database regarding the post
I don't know how to use this Webhook in Appwrite.
Does Appwrite Webhook connect to the cloud function?
Summary
The developer is seeking help with using Appwrite Webhooks and Cloud Functions. They want to update the Appwrite database with the status of a video that is encoded by a third-party CDN. They are unsure of how to use Webhooks in Appwrite and whether Webhooks connect to Cloud Functions.
Solution:
Appwrite Webhooks allow Appwrite to call an external URL on an event. To update the Appwrite database with the video status, the developer needs to set up a Webhook that will be triggered by the third-party CDN. They can pass the video status as body data in the request, which will be available as `context
ideclon
Jan 16, 2024, 18:13
Like your (literal) metaphor! 😆
No, Appwrite Webhooks allow Appwrite to call an external URL on an Event.
You can trigger an Appwrite Function by calling it's domain, which you can see in the Function Deployments page (you can see it's [FUNCTION_ID].appwrite.global in the attached screenshot).