Skip to content

Commit 07dc8fe

Browse files
committed
Stub for duplicate targets
1 parent c83011f commit 07dc8fe

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/vws/vws.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,3 +411,30 @@ def delete_target(self, target_id: str) -> None:
411411
request_path=f'/targets/{target_id}',
412412
expected_result_code='Success',
413413
)
414+
415+
def get_duplicate_targets(self, target_id: str) -> None:
416+
"""
417+
Get targets which may be considered duplicates of a given target.
418+
419+
See
420+
https://library.vuforia.com/articles/Solution/How-To-Use-the-Vuforia-Web-Services-API.html#How-To-Check-for-Duplicate-Targets.
421+
422+
423+
Args:
424+
target_id: The ID of the target to delete.
425+
426+
Raises:
427+
~vws.exceptions.AuthenticationFailure: The secret key is not
428+
correct.
429+
~vws.exceptions.Fail: There was an error with the request. For
430+
example, the given access key does not match a known database.
431+
~vws.exceptions.UnknownTarget: The given target ID does not match a
432+
target in the database.
433+
~vws.exceptions.ProjectInactive: The project is inactive.
434+
"""
435+
self._make_request(
436+
method='DELETE',
437+
content=b'',
438+
request_path=f'/targets/{target_id}',
439+
expected_result_code='Success',
440+
)

0 commit comments

Comments
 (0)