Start a new topic

Wikitude WTC generation API

Our use case is to create a WTC file from a few images stored in our database.

Here is the steps as we understand

Create a Target collection using API “https://api-eu.wikitude.com/cloudrecognition/targetCollection

Upload Images to the Target Collection using API “https://api-eu.wikitude.com/cloudrecognition/targetCollection/sdfas/targets

Create WTC using API “https://api-eu.wikitude.com/cloudrecognition/targetCollection/dfhdfh/generation/wtc
However step 3 only sends email rather than giving a WTC File. Now someone needs to monitor the email and again upload the WTC file back into our app Server. Which is a manual process and has the possibility for human error. Kindly point us to the API which will take Target Collection as input and provide “WTC” file as output.


Hi,


Currently there is no work-around because there is now way to determine when a file has been created.


What you could do however is to check the target collection endpoint (/cloudrecognition/targetcollection/[TC_ID]) and if the "wtc" property has any items, each should contain a "url" which points to the WTC file.


You could use that link for a one-time download, but you should be aware that this approach is not recommended as that link might change or the file might not be persisted, since WTC hosting is not a feature that is currently available.

Hello,


OK thank you for the clarification. Is there any work around?

  1. We can use Generate WTC API to generate WTC for a target collection.
  2. From the response of above API, we get a generationID.

So is there any way we can download the WTC file by providing the generationID(fetched in above API)?

Hello,


OK thank you for the clarification. Is there any work around?


As per the given API:

  1. We can use Generate WTC API to generate WTC for a target collection.
  2. From the response of above API, we get a generationID.


So i
s there any way we can download the WTC file by providing the generationID(fetched in above API)?

Hello,


The WTC generation is an asynchronous process, which is why you receive the email with the downloadable WTC file when the process is complete.


Currently there is no endpoint that returns a WTC file directly when a WTC generation is requested.


Kind regards.


1 person likes this
Login or Signup to post a comment