Skip to content

Commit

Permalink
doc: update evidence section link
Browse files Browse the repository at this point in the history
  • Loading branch information
figueredo committed Jul 16, 2024
1 parent b859f43 commit a8bcb8a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,29 +337,31 @@ 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
}
}
}
```
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("account_integrity.risk_window_remaining", &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
Expand Down

0 comments on commit a8bcb8a

Please sign in to comment.