Post
/analytics/total_sessions_time
Used to get the total time spent in sessions 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": "736000"
}
}
}object
success
boolean
Defaulttrue
ExampleTrue
code
integer
Default0
Example200
data
object
totals
object
amount
string
Example736000
400
400
Result
{
"success": "False",
"code": "400",
"message": "General error information",
"errors": [
{
"text": [
"Detailed information about the specific error"
]
}
]
}object
success
boolean
Defaulttrue
ExampleFalse
code
integer
Default0
Example400
message
string
ExampleGeneral error information
errors
Array of object
object
text
Array of string
string