You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.err.println("Exception when calling FingerprintApi.updateEvent:"+ e.getMessage());
146
+
}
147
+
163
148
// Get a specific visitor's all visits
164
149
try {
165
150
// Fetch all visits with a given visitorId, with a page limit
@@ -186,6 +171,13 @@ public class FingerprintApiExample {
186
171
} catch (ApiException e) {
187
172
System.err.println("Exception when calling FingerprintApi.getVisits:"+ e.getMessage());
188
173
}
174
+
175
+
// Delete visitor data with a given visitorID
176
+
try {
177
+
api.deleteVisitorData(FPJS_VISITOR_ID);
178
+
} catch (ApiException e) {
179
+
System.err.println("Exception when calling FingerprintApi.deleteVisitorData:"+ e.getMessage());
180
+
}
189
181
}
190
182
}
191
183
```
@@ -227,6 +219,37 @@ public class SealedResults {
227
219
```
228
220
To learn more, refer to example located in [src/examples/java/com/fingerprint/example/SealedResults.java](src/examples/java/com/fingerprint/example/SealedResults.java).
229
221
222
+
## Webhook signature validation
223
+
This SDK provides utility method for verifying the HMAC signature of the incoming webhook request.
|**code**|[**CodeEnum**](#CodeEnum)| Error code: * `RequestCannotBeParsed` - the JSON content of the request contains some errors that prevented us from parsing it (wrong type/surpassed limits) * `Failed` - the event is more than 10 days old and cannot be updated ||
11
+
|**message**|**String**| Details about the underlying issue with the input payload ||
|**code**|[**CodeEnum**](#CodeEnum)| Error code: * `StateNotReady` - The event specified with request id is not ready for updates yet. Try again. This error happens in rare cases when update API is called immediately after receiving the request id on the client. In case you need to send information right away, we recommend using the JS agent API instead. ||
|**code**|[**CodeEnum**](#CodeEnum)| Error code: * `VisitorNotFound` - The specified visitor ID was not found. It never existed or it may have already been deleted. ||
0 commit comments