File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,16 @@ public class FingerprintApiExample {
135
135
} catch (ApiException e) {
136
136
System . err. println(" Exception when calling FingerprintApi.getEvent:" + e. getMessage());
137
137
}
138
+
139
+ // Update an event with a given requestId
140
+ try {
141
+ EventUpdateRequest request = new EventUpdateRequest ();
142
+ request. setLinkedId(" myNewLinkedId" );
143
+ api. updateEvent(FPJS_REQUEST_ID , request);
144
+ } catch (ApiException e) {
145
+ System . err. println(" Exception when calling FingerprintApi.updateEvent:" + e. getMessage());
146
+ }
147
+
138
148
// Get a specific visitor's all visits
139
149
try {
140
150
// Fetch all visits with a given visitorId, with a page limit
@@ -161,6 +171,13 @@ public class FingerprintApiExample {
161
171
} catch (ApiException e) {
162
172
System . err. println(" Exception when calling FingerprintApi.getVisits:" + e. getMessage());
163
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
+ }
164
181
}
165
182
}
166
183
```
Original file line number Diff line number Diff line change @@ -162,6 +162,16 @@ public class FingerprintApiExample {
162
162
} catch (ApiException e) {
163
163
System.err.println("Exception when calling FingerprintApi.getEvent:" + e.getMessage());
164
164
}
165
+
166
+ // Update an event with a given requestId
167
+ try {
168
+ EventUpdateRequest request = new EventUpdateRequest();
169
+ request.setLinkedId("myNewLinkedId");
170
+ api.updateEvent(FPJS_REQUEST_ID, request);
171
+ } catch (ApiException e) {
172
+ System.err.println("Exception when calling FingerprintApi.updateEvent:" + e.getMessage());
173
+ }
174
+
165
175
// Get a specific visitor' s all visits
166
176
try {
167
177
// Fetch all visits with a given visitorId, with a page limit
@@ -188,6 +198,13 @@ public class FingerprintApiExample {
188
198
} catch (ApiException e) {
189
199
System.err.println("Exception when calling FingerprintApi.getVisits:" + e.getMessage());
190
200
}
201
+
202
+ // Delete visitor data with a given visitorID
203
+ try {
204
+ api.deleteVisitorData(FPJS_VISITOR_ID);
205
+ } catch (ApiException e) {
206
+ System.err.println("Exception when calling FingerprintApi.deleteVisitorData:" + e.getMessage());
207
+ }
191
208
}
192
209
}
193
210
```
You can’t perform that action at this time.
0 commit comments