1

generating a token for the locator

Тема: 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

2

generating a token for the locator

Re: generating a token for the locator

Hello

Please check token you're using in PHP for login,  token can be created only from full access session (session token access_level=-1).

3

generating a token for the locator

Re: generating a token for the locator

the token has complete access, the problem seems to be with the api so I will direct the web request

4

generating a token for the locator

Re: generating a token for the locator

effectively direct request to do work, it's something about the api.
hopefully works for someone else to not lose as long as I

5

generating a token for the locator

Re: generating a token for the locator

I found a problem in php-wialon
https://github.com/wialon/php-wialon/co … 3cb9c57077

Please try fixed version
Thanks for reporting