DBTEAMLOGTeamAuthRoutes
Objective-C
@interface DBTEAMLOGTeamAuthRoutes : NSObject
Swift
class DBTEAMLOGTeamAuthRoutes : NSObject
Routes for the TeamLog namespace
-
An instance of the networking client that each route will use to submit a request.
Declaration
Objective-C
@property (nonatomic, readonly) id<DBTransportClient> _Nonnull client; -
Initializes the
DBTEAMLOGTeamAuthRoutesnamespace container object with a networking client.Declaration
Objective-C
- (nonnull instancetype)init:(nonnull id<DBTransportClient>)client; -
Retrieves team events. If the result’s
hasMoreinDBTEAMLOGGetTeamEventsResultfield is true, callgetEventsContinuewith the returned cursor to retrieve more entries. If end_time is not specified in your request, you may use the returned cursor to pollgetEventsContinuefor new events. Many attributes note ‘may be missing due to historical data gap’. Note that the file_operations category and & analogous paper events are not available on all Dropbox Business plans /business/plans-comparison. Use features/get_values /developers/documentation/http/teams#team-features-get_values to check for this feature. Permission : Team Auditing.Declaration
Objective-C
- (nonnull DBRpcTask<DBTEAMLOGGetTeamEventsResult *, DBTEAMLOGGetTeamEventsError *> *)getEvents;Swift
func getEvents() -> DBRpcTask<DBTEAMLOGGetTeamEventsResult, DBTEAMLOGGetTeamEventsError>Return Value
Through the response callback, the caller will receive a
DBTEAMLOGGetTeamEventsResultobject on success or aDBTEAMLOGGetTeamEventsErrorobject on failure. -
Retrieves team events. If the result’s
hasMoreinDBTEAMLOGGetTeamEventsResultfield is true, callgetEventsContinuewith the returned cursor to retrieve more entries. If end_time is not specified in your request, you may use the returned cursor to pollgetEventsContinuefor new events. Many attributes note ‘may be missing due to historical data gap’. Note that the file_operations category and & analogous paper events are not available on all Dropbox Business plans /business/plans-comparison. Use features/get_values /developers/documentation/http/teams#team-features-get_values to check for this feature. Permission : Team Auditing.Declaration
Objective-C
- (nonnull DBRpcTask<DBTEAMLOGGetTeamEventsResult *, DBTEAMLOGGetTeamEventsError *> *) getEvents:(nullable NSNumber *)limit accountId:(nullable NSString *)accountId time:(nullable DBTEAMCOMMONTimeRange *)time category:(nullable DBTEAMLOGEventCategory *)category eventType:(nullable DBTEAMLOGEventTypeArg *)eventType;Swift
func getEvents(_ limit: NSNumber?, accountId: String?, time: DBTEAMCOMMONTimeRange?, category: DBTEAMLOGEventCategory?, eventType: DBTEAMLOGEventTypeArg?) -> DBRpcTask<DBTEAMLOGGetTeamEventsResult, DBTEAMLOGGetTeamEventsError>Parameters
limitThe maximal number of results to return per call. Note that some calls may not return limit number of events, and may even return no events, even with
has_moreset to true. In this case, callers should fetch again usinggetEventsContinue.accountIdFilter the events by account ID. Return only events with this account_id as either Actor, Context, or Participants.
timeFilter by time range.
categoryFilter the returned events to a single category. Note that category shouldn’t be provided together with event_type.
eventTypeFilter the returned events to a single event type. Note that event_type shouldn’t be provided together with category.
Return Value
Through the response callback, the caller will receive a
DBTEAMLOGGetTeamEventsResultobject on success or aDBTEAMLOGGetTeamEventsErrorobject on failure. -
Once a cursor has been retrieved from
getEvents, use this to paginate through all events. Permission : Team Auditing.Declaration
Objective-C
- (nonnull DBRpcTask<DBTEAMLOGGetTeamEventsResult *, DBTEAMLOGGetTeamEventsContinueError *> *)getEventsContinue: (nonnull NSString *)cursor;Swift
func getEventsContinue(_ cursor: String) -> DBRpcTask<DBTEAMLOGGetTeamEventsResult, DBTEAMLOGGetTeamEventsContinueError>Parameters
cursorIndicates from what point to get the next set of events.
Return Value
Through the response callback, the caller will receive a
DBTEAMLOGGetTeamEventsResultobject on success or aDBTEAMLOGGetTeamEventsContinueErrorobject on failure.
View on GitHub
DBTEAMLOGTeamAuthRoutes Class Reference