File downloaded history
Hi.
I want to obtain a file downloaded history with Box API.
Clearly I need two information below.
・Who downloaded a file
・What time was a file downloaded
I've read through the references, and I don't think a file object doesn't help?
If I set up a webhook to notify me whenever a file is downloaded, do I get the information I need??
Thank you.
-
I tried this:
EventLog events = EventLog.getEnterpriseEvents(api, twoHoursAgo, now, BoxEvent.Type.DOWNLOAD); for (BoxEvent event : events) { System.out.println(event.getType() + " " + event.getSourceJSON().get("item_name") + " " + event.getCreatedAt() + " " + event.getCreatedBy().getLogin()); }
サインインしてコメントを残してください。
コメント
1件のコメント