Topic: generating a token for the locator
hi i need to automate the locator using the SDK php, now reviewing the submission in the debugger and browser imitate but this answer with invalid input:
this is my code:
function getUrlLocator(){
global $wialon_api;
$parametrosLocator = array (
"callMode"=>"create","app"=>"locator","at"=>0,"dur"=>86400,"fl"=>256,
"p"=>json_encode(array("note"=>"gggg","pois"=>0,"zones"=>0,"tracks"=>0)),"items"=>array(654654654)
);
print_r(json_encode($parametrosLocator)); echo '<br> <br>';
$url = json_decode($wialon_api->token_update(json_encode($parametrosLocator)),true);
print_r($url);
}
response error 4 invalid input
I already reviewing requests and 2 are identical, and I have no idea because I answered Error