Long polling - User events
I'm building a Box Application, using Java Content API and users authenticated as Box users.
In this application, I need to receive an alert every time an item is created (or uploaded) in a specific folder.
To do so I want to use Long Polling and User events, but this way I will receive all the events associated to the user connected.
Is it possible to restrict long polling and/or the user events to only 1 folder ?
Is it possible to filter the events, to receive only a specific type of events, such as ITEM_CREATE or ITEM_UPLOAD ?
-
Claire,
In answer to your first question, here is a somewhat ugly hack to implement it:
Create an account that only has access to that folder (not sure what level is required, I would probably just use co-owner). Long poll against that account and you will only see events for that folder (or any other folder you want to do the same kind of polling against that you grant access to that account).
As for your second question, I have the same one but I don't think it is currently supported. Feature request time! The more of us that ask for it, the sooner/more likely we are to see it.
Please sign in to leave a comment.
Comments
1 comment