diff --git a/README.md b/README.md index 4b1dd4c..526ac9e 100644 --- a/README.md +++ b/README.md @@ -337,13 +337,14 @@ if err != nil { fmt.Println(deviceModel) ``` -You can also access specific evidences using their full path. For example, to get risk_window_remaining evidence from the following response: +You can also access specific evidences using their full path. For example, to get `location_permission_enabled` evidence from the following response: ```json { - ... - "account_integrity": { - "risk_window_remaining": 12812817373 + "evidence": { + "location_services": { + "location_permission_enabled": true + } } } ``` @@ -351,15 +352,16 @@ You can also access specific evidences using their full path. For example, to ge call any type of `GetEvidence` method using the evidence's full path: ```go -riskWindowRemaining, err := assessment.Evidence.GetEvidenceAsInt64("account_integrity.risk_window_remaining") +var locationPermissionEnabled bool +err := assessment.Evidence.GetEvidence("location_services.location_permission_enabled", &locationPermissionEnabled) if err != nil { return err } -fmt.Println(riskWindowRemaining) +fmt.Println(locationPermissionEnabled) ``` -You can find all available evidence [here](https://docs.incognia.com/apis/understanding-assessment-evidence#risk-assessment-evidence). +You can find all available evidence [here](https://developer.incognia.com/docs/apis/v2/understanding-assessment-evidence). ## How to Contribute