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
- Failed to load data from database
My app broken, it throw AppwriteException exception. Few days ago it works well. AppwriteException: , ClientException with SocketException: Failed host lookup:...
- AI feature by functions?
I'm creating a website where, in short, users can index certain genealogical content. In connection with the development of AI, I was thinking about introducing...
- Unknown usage from one of my database
I need support help. For more than 2 weeks, i didn't make any requests to my database, but I have noticed huge amount of reads and writes requests: Around 8000...