JSON object key is ID that will be returned with the data and value is request specification.
Three keys: target
, group
and time
.
Target means what data should be returned. Can be xp
for total XP amounts, language
for XP split by language, or
machine
for XP split by machine.
Group means grouping of data. total
means no grouping, amounts are sent as is. Other values group the data into
a list of group objects. Valid values are: 5min
, 15min
, 30min
, hour
, day
, month
, year
(these group
the data into time based groups).
Time means range of time from where data is retrieved. total
is only available if group is also total
, it returns
totals since the user was registered. Otherwise the value can be a single RFC3339 datetime for returning from that time
to current time or a list of two RFC3339 datetimes representing the start and end points of the time range. Time range
is 30 days maximum.
If data is grouped, it's returned in group objects:
{
"id": "2017-10-30T00:00:00Z",
"data": ...
}
The ID depends on the grouping type. If the grouping is based on time, the ID will be an RFC3339 datetime rounded down to the starting datetime of the group.