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?
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).
Calling that domain will trigger the function. You can pass body data into the request, which will be available as context.req.body within the Function - https://appwrite.io/docs/products/functions/development#request.
thanks @ideclon I'm grateful you clarify this out for me
Recommended threads
- Function Building show 500 Error
Region: sfo Temple: Starter Function Runtime: Nodejs 22 What happened? Before 2 minutes it show ‘server error.","code":500,"version":"0.7.24"}’ after it show c...
- Function for long running task (other 60...
My function need long running other 60 seconds. But async mode return empty body. How to deal with that please ?
- Attach Dart debugger for locally deploye...
Hello there, I was wondering if it is possible to attach debugger to dart function, that I run locally. It would make development much easier :-). Thank you.