Terms And Conditions
To use our services you have to accept our latest Terms And Conditions.
Get the latest version
Client requirements
API call
- iOS (Swift)
- Android (Java)
trustfactorClient.getLatestTermsAndConditions({ result, correlationId in
switch result {
case .success(let termsAndConditions):
// handle success
case .failure(let error):
// handle error
}
})
trustFactorClient.getLatestTermsAndConditions((result) -> result.fold(
(TFTermsAndConditions termsAndConditions, String correlationId) -> {
// handle success
},
(Error error, String correlationId) -> {
// handle error
}
));
Get Content
Client requirements
- Registered Device
- Authenticated Device (Not required if the device is not yet registered)
- Associated Profiles
API call
- iOS (Swift)
- Android (Java)
<TFTermsAndConditions>.getContent() { content, error in
guard let content, error == nil else {
// handle error
}
content.data // Data type
content.contentType // ContentType type
}
termsAndConditions.getTermsAndConditionsContent(termsAndConditions, (result) -> result.fold(
(Content content, String correlationId) -> {
// handle success
},
(Error error, String correlationId) -> {
// handle error
}
));
Accept
caution
If the device is not yet registered this method will perform acceptance validation upon registration.
Client requirements
- Registered Device
- Authenticated Device (Not required if the device is not yet registered)
- Associated Profiles
API call
- iOS (Swift)
- Android (Java)
trustFactorClient.acceptTermsAndConditions(<TFTermsAndConditions>) { result, correlationId in
switch result {
case .success:
// handle success
case .failure(let error):
// handle error
}
}
trustFactorClient.acceptTermsAndConditions(termsAndConditions, termsAndConditionsContent, (result) -> result.fold(
(Boolean value, String correlationId) -> {
// value is a boolean we can ignore
},
(Error error, String correlationId) -> {
// handle error
}
));