Vuforex.Target.find
You're seeing just the function
find
, go back to Vuforex.Target module for more information.
Specs
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"
...> }}