运动 API
运动 api 信息
个人运动轨迹列表
获取个人运动轨迹列表
GET
/openapi/v1/activities/
Response 200
字段详情
样例
{
"count": 0,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"sport": 0,
"title": "activity title",
"detail": "activity description",
"distance": 12323,
"start_time": 1724385462000,
"end_time": 1724385489000
}
]
}
轨迹详情信息
指定轨迹id获取轨迹详情信息
GET
/openapi/v1/athlete/{id}/
Response 200
{
"sport": 0,
"title": "activity title",
"detail": "activity description",
"distance": 12323,
"start_time": 1724385462000,
"end_time": 1724385489000
}
Error Response
400
{
"code": 400,
"msg": "API Limited",
"data": {}
}
401
{
"code": 401,
"msg": "Unauthorized Error",
"data": {}
}
500
{
"code": 500,
"msg": "Server Error",
"data": {}
}