Skip to main content

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
  • id
    StatisticsEnum
    The identifier of the statistics item.
  • A list of sub-items

UserStatisticsSubItemResDTO

properties
  • subId
    StatisticsEnum
    The identifier of the statistics sub-item.
  • value
    number
    The corresponding values corrected to the nearest integer.
  • subValue
    number
    The corresponding values corrected to the nearest two decimal places.

StatisticsEnum

StatisticsItemEnum

NameValue
歩行目標0
地區資訊記錄1
精神健康資訊記錄2
任務中心記錄3
商店記錄4

歩行目標 sub-item

NameValue
總歩行歩數0
總消耗卡路里1

地區資訊記錄 sub-item

NameValue
已上傳照片0

精神健康資訊記錄 sub-item

NameValue
已閱讀最新消息0
已查看認識精神健康1
已閱讀生命故事分享2
巳閱讀專欄分享3

任務中心記錄 sub-item

NameValue
巳完成任務0
已獲得金幣1
已獲得經驗值2
已領取兌換券3

商店記錄 sub-item

NameValue
已換購家具0
巳換購服飾1
已換購伙伴角色2