Skip to main content

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




how they compare in terms of efficiency?


for example when we use long polling do we get events much earlier/faster?  



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:



Reply