Token login

To get token please use forms mentioned in New authorization way. For processing under token token/login is used. Command signature is as follows:

svc=token/login&params={"token":<text>,
                        "operateAs":<text>,
                        "fl":<uint>}

Parameters

Name Description
token unique token name, 72 symbols
operateAs subuser name to login (optional parameter)
fl response flags
Flag HEX Flag DEC Description
0x1 1 basic info
0x2 2 user info
0x4 4 token info
0x8 8 items info
0x10 16 billing services info

How to get token name?

- create new token (token/update command, callmode:create);
- execute token/list command (if tokens already created).

You cannot login under non-activated token (refer to at-param in token parameters).

Response

Response is the same as if the user has regularly logged in (core/login) using account that created token. Nevertheless new token-param is added with all token parameters as value:

{
	...,		/* core/login response */
 
	"token":"{\"app\":\"<text>\",\"ct\":<uint>\"at\":<uint>,\"dur\":<uint>,\"fl\":<uint>\"p\":\"<text>\",\"items\":[<long>]}",	
								/* all token settings as escaped json */
	...		/* core/login response */
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2018 Gurtam