Class: RecentItems

RecentItems(client) → {void}

Simple manager for interacting with all 'RecentItem' endpoints and actions.

Constructor

new RecentItems(client) → {void}

Parameters:
Name Type Description
client BoxClient The Box API Client that is responsible for making calls to the API
Source:
Returns:
Type
void

Methods

get(optionsopt, callbackopt) → {Promise.<Object>}

Requests all items that have been accessed by a user in the last 90 days or the last 1000 items accessed. API Endpoint: '/recent_items' Method: GET
Parameters:
Name Type Attributes Description
options Object <optional>
Additional options for the request. Can be left null in most cases.
Properties
Name Type Attributes Description
limit int <optional>
Maximum number of items to return
marker string <optional>
The position marker for marker-based paging
fields string <optional>
Comma-separated list of fields to include in the response
callback function <optional>
Passed the items information if they were acquired successfully
Source:
Returns:
A promise resolving to the collection of items in the collection
Type
Promise.<Object>

get(optionsopt, callbackopt) → {Promise.<Object>}

Requests all items that have been accessed by a user in the last 90 days or the last 1000 items accessed. API Endpoint: '/recent_items' Method: GET
Parameters:
Name Type Attributes Description
options Object <optional>
Additional options for the request. Can be left null in most cases.
Properties
Name Type Attributes Description
limit int <optional>
Maximum number of items to return
marker string <optional>
The position marker for marker-based paging
fields string <optional>
Comma-separated list of fields to include in the response
callback function <optional>
Passed the items information if they were acquired successfully
Source:
Returns:
A promise resolving to the collection of items in the collection
Type
Promise.<Object>