Statistics API
The Statistics API provides the endpoints to manage the user's statistics in APP.
Endpoints
# Endpoints
Get my statistics
Request
GET /app/statistics
Response (UserStatisticsItemResDTO)
{
"success": true,
"message": "",
"data": [
{
"id": 0,
"subItems": [
{
"subId": 0,
"value": 699963,
"subValue": 505775
}
]
}
]
}
Resources
UserStatisticsItemResDTO
properties
The identifier of the statistics item.
subItem
A list of sub-items
UserStatisticsSubItemResDTO
properties
subId
The identifier of the statistics sub-item.
value
numberThe corresponding values corrected to the nearest integer.
subValue
numberThe corresponding values corrected to the nearest two decimal places.
StatisticsEnum
StatisticsItemEnum
Name | Value |
---|---|
歩行目標 | 0 |
地區資訊記錄 | 1 |
精神健康資訊記錄 | 2 |
任務中心記錄 | 3 |
商店記錄 | 4 |
歩行目標 sub-item
Name | Value |
---|---|
總歩行歩數 | 0 |
總消耗卡路里 | 1 |
地區資訊記錄 sub-item
Name | Value |
---|---|
已上傳照片 | 0 |
精神健康資訊記錄 sub-item
Name | Value |
---|---|
已閱讀最新消息 | 0 |
已查看認識精神健康 | 1 |
已閱讀生命故事分享 | 2 |
巳閱讀專欄分享 | 3 |
任務中心記錄 sub-item
Name | Value |
---|---|
巳完成任務 | 0 |
已獲得金幣 | 1 |
已獲得經驗值 | 2 |
已領取兌換券 | 3 |
商店記錄 sub-item
Name | Value |
---|---|
已換購家具 | 0 |
巳換購服飾 | 1 |
已換購伙伴角色 | 2 |