Get visitors currently online on the site

Get visitors who are currently on the site and are "online". This method is used in "Visitors online" admin panel section.

URL

GET https://api.dashly.app/apps/{id}/activeusers

Parameters

Auth parameters.
Pagination parameters. For pagination v2 only paginate_position=before is available.
id_as_string parameter.
Parameters which include optional fields of User object. Optional fields presence_details, presence, props are included by default

Answer

data field contains a list of User objects.
meta field contains new pagination parameters.

Example:

{
  "meta": {
    "status": 200
  },
  "data": [
    {
      "id": 184811087,
      "props_Custom": "",
      "presence_details": {
        "page": "Information | My project",
        "url": "http://example.com/some/page.php",
        "session_started": 1448798155,
        "presence": "online",
      }
    },
    ...
  ]
}

Errors

General Web API errors.

Example

curl -X GET  -H "Authorization Token XXX" "https://api.dashly.app/apps/$self_app/activeusers"