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¶ms={"token":<text>, "operateAs":<text>}
Parameters
Name | Description |
---|---|
token | unique token name, 72 symbols |
operateAs | subuser name to login (optional parameter) |
How to get token name?
– create new token (token/update command, callmode:create);
– execute token/list command (if tokens already created).
NOTE: 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 */ }