get_tag_bindings

The resource/get_tag_bindings method allows you to get information about tag assignments and separations during a specified time interval. The tags are used when assigning or separating passengers.

Endpoint

Copied!
svc=resource/get_tag_bindings&params={
  "resourceId": <long>,
  "unitId": <long>,
  "tagId": <long>,
  "timeFrom": <uint>,
  "timeTo": <uint>
}

Parameters

Parameter Description
resourceId Resource ID.
unitId Unit ID (0 for all units).
tagId Tag ID (0 for all tags).
timeFrom The beginning of the interval.
timeTo The end of the interval.

Response

Copied!
{
  "<text>": [        /* tag ID */
    {
      "t": <uint>,   /* time of assignment/separation */
      "u": <uint>,   /* unit ID in case of assignment, 0 in case of separation */
      "pu": <uint>,  /* previous unit ID in case of separation, 0 in case of assignment */
      "f": <uint>    /* timeout of separation, 4 - yes */
    },
    ...
  ],
  ...
}

If the request fails, an error code is returned.

Error codes

Error code Description
4 Failed to fetch the list of tags or wrong input parameters.
7 The resource doesn’t exist or the user doesn’t have the View passengers and Request reports and messages access rights to it, or the unit doesn’t exist or the user doesn’t have the View object and its basic properties access right to it.

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