Average session time

Prev Next
Post
/analytics/avg_session_time

Used to get the average session time over a given time period.

Body parameters
object
apptoken
string Required

Your App token

from
string Required

Start date for the analytics query (YYYY-MM-DD)

to
string Required

End date for the analytics query (YYYY-MM-DD)

Responses
200

200

Result
{
  "success": true,
  "code": 200,
  "data": {
    "totals": {
      "amount": 23
    }
  }
}
Expand All
object
success
boolean
Defaulttrue
Exampletrue
code
integer
Default0
Example200
data
object
totals
object
amount
integer
Default0
Example23
400

400

Result
{
  "success": false,
  "code": 400,
  "message": "General error information",
  "errors": [
    {
      "text": [
        "Detailed information about the specific error"
      ]
    }
  ]
}
Expand All
object
success
boolean
Defaulttrue
Examplefalse
code
integer
Default0
Example400
message
string
ExampleGeneral error information
errors
Array of object
object
text
Array of string
string