Vuforex.Target (vuforex v0.1.2) View Source

Deals with Targets on Vuforia. It can create, update, delete and retrieve targets.

Link to this section Summary

Functions

Retrieves information about a specific target on the database(VWS API).

Link to this section Functions

Specs

find(String.t()) :: {:ok, map()} | {:error, map()}

Retrieves information about a specific target on the database(VWS API).

Examples

iex> Vuforex.Target.find("58c1d736a5f549e49fc7a7d327d1483a")
...> {:ok,
...>  %{
...>     "result_code" => "Success",
...>     "status" => "success",
...>     "target_record" => %{
...>       "active_flag" => true,
...>       "name" => "Elegant-Modern-Home-Cyprus_21",
...>       "reco_rating" => "",
...>       "target_id" => "58c1d736a5f549e49fc7a7d327d1483a",
...>       "tracking_rating" => 2,
...>       "width" => 200
...>     },
...>     "transaction_id" => "ff93b2aef8fe431ca55e76f71e57de60"
...>   }}

iex> Vuforex.Target.find("dada")
...> {:error,
...> %{
...>   "result_code" => "UnknownTarget",
...>   "transaction_id" => "2e46d12f8d864b098f3580aaf1c9a6c4"
...> }}