EventStream for all user from an enterprise account
Hi,
I have an enterprise account and have created an application. Now I need to create a Java application which gets notified anytime any enterprise user does an operation on its account.
I am using the EventStream class. I was able to get notifications when user X has done some operations in its account, but I cannot make it work to receive notifications for all users.
I was trying to use the enterprise connection as parameter for the EventStream constructor, but I get an error(403 Forbidden):
enterpriseConnection = BoxDeveloperEditionAPIConnection
.getAppEnterpriseConnection(enterpriseId, clientId,
clientSecret, pref, accessTokenCache); EventStream stream = new EventStream(connection); stream.start();
However, if I am using the app user connection, it works fine, but only for user .
appUserConnection = BoxDeveloperEditionAPIConnection
.getAppUserConnection(userId, clientId, clientSecret,
pref, accessTokenCache); EventStream stream = new EventStream(appUserConnection);
stream.start();
Is there a way to accomplish this?
Tx
Please sign in to leave a comment.
Comments
0 comments