Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 525 Bytes

Events.md

File metadata and controls

16 lines (13 loc) · 525 Bytes

Events

Get Events for the Current User

BoxApiEvent eventApi = new BoxApiEvent(session);
BoxRequestsEvent.GetUserEvents eventRequest = eventApi.getUserEventsRequest();

// See API documentation for configuring stream position and stream type:
// https://developers.box.com/docs/#events
eventRequest.setStreamType("all").setStreamPosition("0");

BoxListEvents events = eventRequest.send();
// You will likely want to use events.getNextStreamPosition() for your next request.