Accessing folder and file change logs using Java API
回答済みAn application* I am working on has to be aware of changes which were made to a file/folder since some time period.
* The application is connecting to Box service account via JWT authentication.
The changes we are interested in are on a macro scale, i.e. "file X added to folder Y", "file X removed from folder Y", "file X changed", etc..
As I understand from the documentation, the API with this functionality is the Enterprise Events.
For some reason, when I try to access the Enterprise Events the response I am getting is 403 - Forbidden.
Now for the questions:
1. do Enterprise Events deliver the functionality I am looking for? (if not, how it can be done)
2. if so, how to configure the service account of my application to avoid the 403 error?
-
Here is the exception output:
com.box.sdk.BoxAPIResponseException: The API returned an error code [403 | 2pbv39fuwem746ju] forbidden - Forbidden at com.box.sdk.BoxAPIResponse.(BoxAPIResponse.java:90) at com.box.sdk.BoxJSONResponse.(BoxJSONResponse.java:32) at com.box.sdk.BoxAPIRequest.trySend(BoxAPIRequest.java:551) at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:326) at com.box.sdk.BoxAPIRequest.send(BoxAPIRequest.java:301) at com.box.sdk.EventLog.getEnterpriseEvents(EventLog.java:134) at com.box.sdk.EventLog.getEnterpriseEvents(EventLog.java:75)
Maybe the error is due to the account type?
-
Hello,
One thing I'm seeing is that you have changed your application access to "enterprise", but haven't reauthorized your application since that change was made. You will need to do this in the apps tab of enterprise settings in the admin console in order for these changes to take effect. Additionally, you will need to enable the "manage enterprise properties scope"! Once you do both of these, re-test!
Best,
Kourtney
サインインしてコメントを残してください。
コメント
3件のコメント