Перейти к содержимому

Получить показатели тренировки

POST
/ex/activities.get
curl --request POST \
--url https://api.tride.ru/ex/activities.get \
--header 'Content-Type: application/json' \
--data '{ "key": "<ключ клуба>", "id": "000000000000000000000001" }'

Отправьте ключ внешней системы клуба в поле key на своём сервере. Порядок подключения.

Media typeapplication/json
object
key
required

Отправьте ключ внешней системы клуба в поле key на своём сервере.

string
id
required

Идентификатор активности

string

Example

{
"key": "<ключ клуба>",
"id": "000000000000000000000001"
}

При ошибке сервер возвращает поле error.

Media typeapplication/json
Any of:
object
id

Идентификатор активности

string | null
title

Название активности

string | null
sport_type

Вид спорта

integer | null
uid
integer
athlete
session_id
club_ids
Array
duration
number
started_ts
integer
kind
has_analytics
boolean
totals
object
averages
object
maximums
object
graphs
splits
can_show_splits
boolean

Example generated

{
"id": "example",
"title": "example",
"sport_type": 1,
"uid": 1,
"athlete": "example",
"session_id": "example",
"club_ids": [
"example"
],
"duration": 1,
"started_ts": 1,
"kind": "example",
"has_analytics": true,
"totals": {},
"averages": {},
"maximums": {},
"graphs": "example",
"splits": "example",
"can_show_splits": true
}