How to add an event listener to an instance in Metadata
回答済みHi,
There is a metadata instance in a box file in our application.
We have set the status of the metadata from a dropdown.
Depending on that value, our application should reflect that in our front end.
So I want to add an event listener to that metadata instance.
How can I achieve that? Any help is appreciated.
-
Webhooks may work for you - https://developer.box.com/docs/work-with-webhooks
You can define a webhook for that specific file and monitor whichever events you need to (sounds like you want to listen for METADATA_INSTANCE_UPDATED events) and have the webhook call a specific endpoint in your application to update the newly updated metadata value. I don't see a sample of what the request looks like that the webhook sends but you can assume it will have the box id of the file that was updated. You will need to just test it out and log out the request to see.
サインインしてコメントを残してください。
コメント
2件のコメント