Skip to main content

Get Events History

Client requirements

caution

When fetching events history, events of the type "operation" do not contain all the details.

let profileId: TFApplicationProfile.RawIdentifier = ...

// can be ommited
let filters: TFProfileEventHistoryFilter? = nil

let offset: Int64 = 0

let limit: Int64 = 20

trustfactorClient.fetchEventsHistory(for: profileId, offset: offset, limit: limit, filters: filters) { result, correlationID in
switch result {
case .failure(let error):
// handle error

case .success(let eventResult):
// handle results
}
}