@@ -190,7 +190,8 @@ def add_target(
190190 Add a target to a Vuforia Web Services database.
191191
192192 See
193- https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API#How-To-Add-a-Target.
193+ https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API#How-To-Add-a-Target
194+ for parameter details.
194195
195196 Args:
196197 name: The name of the target.
@@ -411,3 +412,34 @@ def delete_target(self, target_id: str) -> None:
411412 request_path = f'/targets/{ target_id } ' ,
412413 expected_result_code = 'Success' ,
413414 )
415+
416+ def get_duplicate_targets (self , target_id : str ) -> List [str ]:
417+ """
418+ Get targets which may be considered duplicates of a given target.
419+
420+ See
421+ https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Check-for-Duplicate-Targets.
422+
423+ Args:
424+ target_id: The ID of the target to delete.
425+
426+ Returns:
427+ The target IDs of duplicate targets.
428+
429+ Raises:
430+ ~vws.exceptions.AuthenticationFailure: The secret key is not
431+ correct.
432+ ~vws.exceptions.Fail: There was an error with the request. For
433+ example, the given access key does not match a known database.
434+ ~vws.exceptions.UnknownTarget: The given target ID does not match a
435+ target in the database.
436+ ~vws.exceptions.ProjectInactive: The project is inactive.
437+ """
438+ response = self ._make_request (
439+ method = 'GET' ,
440+ content = b'' ,
441+ request_path = f'/duplicates/{ target_id } ' ,
442+ expected_result_code = 'Success' ,
443+ )
444+
445+ return list (response .json ()['similar_targets' ])
0 commit comments