Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.43 KB

recent_items.md

File metadata and controls

33 lines (23 loc) · 1.43 KB

Recent Items

Recent Items returns information about files that have been accessed by a user not long ago. It keeps track of items that were accessed either in the last 90 days or the last 1000 items accessed (both conditions must be met).

Get a User's Recent Items

Get a list of all recent items the user has by calling BoxRecents.getRecentItems(BoxAPIConnection api, int limit, String... fields). This returns an ordered iterable of the BoxRecentItem records, which describe which item the user interacted with, when they interacted with it, and what type of interaction it was. Any fields specified relate to the items themselves (e.g. the recent files and folders).

// Get the latest 100 items the user has interacted with
Iterable<BoxRecentItem> recentItems = BoxRecents.getRecentItems(api, 100);