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>}
Name | Description |
---|---|
token | unique token name, 72 symbols |
operateAs | subuser name to login (optional parameter) |
- create new token (token/update command, callmode:create);
- execute token/list command (if tokens already created).
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 */ }
|