Locator creation in Wialon SDK?

Topic: Locator creation in Wialon SDK?

hi guys,

seems that i am stupied: i dont find any way to create / edit / delete locator links via Wialon SDK?

Thanks a lot


Politeness dictates it to write his name on a post

Locator creation in Wialon SDK?

Re: Locator creation in Wialon SDK?

generate locator link is same to generate token with sdk wialon. You must change the wialon hosting app to locator. check this link for more information about.

remote api https://sdk.wialon.com/wiki/en/sidebar/ … ken/update

to create, edit or delete chnage the callmode in the request.

sample code (PHP  remote API):
----------params request----------------------------
$parametrosLocator = array(
        "callMode" => "create", "app" => "locator", "at" => 0, "dur" => 86400, "fl" => 256,
        "p" => json_encode(array("note" => "", "pois" => 0, "zones" => 0, "tracks" => 0)), "items" => array(13809560)
----------execute request----------------------------
$locator = json_decode($wialon_api->token_update(json_encode($paramsLocator)),true);
sample request and response



you need take the property h of this respense because that is you locator link

On my case concat that property with 

http://service.enterares.com/locator/in … 1306D8D82B