list

To get the list of tokens, use the token/list command.

Copied!
svc=token/list&params={"userId":<text>}

Parameters

The request can contain the userId parameter, specifying the subuser ID. The parameter is optional.

Response
If the request is completed successfully, a response of the following format is returned:

Copied!
[
    {
    "h":<text>,       /* Unique token name, 72 symbols. */
    "app":<text>,     /* Application name. */
    "at":<uint>,      /* Token activation time, UNIX-time. */
    "ct":<uint>,      /* Token creation time, UNIX-time. */
    "dur":<uint>,     /* Token duration after activation, seconds. */
    "fl":<uint>,      /* Access flags. */
    "items":[<long>], /* List of item IDs to which the token grants access. */
    "p":<text>        /* Custom parameters, the value must be an object or an array of objects. */
    },
    ...             /* Other tokens (if any). */
]

If the request fails, the response contains error code 7, indicating that the user doesn’t have the required access right (ADF_ACL_ITEM_VIEW_PROPERTIES).

If you find a mistake in the text, please select it and press Ctrl+Enter.

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also