list
To get the list of tokens, use the token/list method.
svc=token/list¶ms={"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:
[
{
"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, in 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).