Pending Operations
Pending Operations are actions that require user interaction like a decision to accept or reject.
Client requirements
Fetch Pending Operations
Fetching pending operations will return all the non-decided/non-expired Operations for all the profiles associates do the current device
- iOS (Swift)
- Android (Java)
trustFactorClient.fetchPendingOperations() { result, correlationId in
// handle result
}
trustFactorClient.fetchPendingOperations(new Result<List<TFOperation>, Error>() {
@Override
public void onSuccess(List<TFOperation> operations, String correlationId) {
// handle results
}
@Override
public void onFailure(Error error, String correlationId) {
// handle error
}
});
Get Operation details
- iOS (Swift)
- Android (Java)
trustFactorClient.getOperationDetails(for: <TFOperation.RawIdentifier>, applicationProfileId: <TFApplicationProfile.RawIdentifier>) { result, correlationId in
// handle result
}
trustFactorClient.getOperationDetails(profileId: <String>, new Result<List<TFOperation>, Error>() {
@Override
public void onSuccess(TFOperation operation, String correlationId) {
// handle results
}
@Override
public void onFailure(Error error, String correlationId) {
// handle error
}
});