Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 715 Bytes

Events.md

File metadata and controls

19 lines (16 loc) · 715 Bytes

Events

Get Events for the Current User

BOXContentClient *contentClient = [BOXContentClient defaultClient];
BOXEventsRequest *eventsRequest = [contentClient eventsRequestForCurrentUser];

// See API documentation for configuring stream position and stream type:
// https://docs.box.com/reference#events
eventsRequest.streamType = BOXEventsStreamTypeAll;
eventsRequest.streamPosition = @"0";

[eventsRequest performRequestWithCompletion:^(NSArray *events, NSString *nextStreamPosition, NSError *error) {
	// If successful, events will be non-nil; otherwise, error will be non-nil.
	// You will likely want to use nextStreamPosition for your next request.
}];