跳到主要内容

运动 API

运动 api 信息

个人运动轨迹列表

获取个人运动轨迹列表


GET /openapi/v1/activities/

Response 200

{
"count": 0,
"next": "https://example.com",
"previous": "https://example.com",
"results": [
{
"start_time": -9223372036854776000,
"end_time": -9223372036854776000,
"distance": -2147483648,
"sport": 0,
"title": "string",
"detail": "string"
}
]
}

轨迹详情信息

指定轨迹id获取轨迹详情信息


GET /openapi/v1/athlete/{id}/

Response 200

{
"start_time": -9223372036854776000,
"end_time": -9223372036854776000,
"distance": -2147483648,
"sport": 0,
"title": "string",
"detail": "string",
"avg_speed": 0.0,
"duration": 2
}

Error Response

400

{
"code": 400,
"msg": "API Limited",
"data": {}
}

401

{
"code": 401,
"msg": "Unauthorized Error",
"data": {}
}

500

{
"code": 500,
"msg": "Server Error",
"data": {}
}