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>, "fl":<uint>}
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 |
0x20 | 32 | user CustomProperties |
- 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 */ }
|