Polling vs Webhook-v1 vs Webhook-v2. Best option supported by Box
I have a use case where I want the data for the events performed by a particular user. Which of the following would be the best option to go with? I would like to know which option is box going to support in the long term.
1. Polling - If yes what are the best APIs to poll the data from.
2. Webhook
Which of the above options would be supported by Box in long run?
Thanks,
Akanksha
-
Take a look at the user events endpoint, which should meet you needs: https://developer.box.com/reference#get-events-for-a-user.
Best,
Kourtney
Box Technical Support Engineer
-
Hey , webhooks and long polling should deliver the event at approximately the same time so I wouldn't worry about speed when making your decision. The more important factor, in my opinion, is whether your application design is more efficient using the implementation process of webhooks or long polling. The following links walk through the implementations of each:
- Webhook: https://developer.box.com/reference#webhooks-v2
- Long polling: https://developer.box.com/reference#long-polling
サインインしてコメントを残してください。
コメント
3件のコメント