Google Fitness
Google Fitness, also known as Google Fit, is a health and activity tracking platform for collecting fitness and wellness data.
- Base URL:
https://fitness.googleapis.com/fitness/v1/users - Auth: OAuth 2.0 (user-delegated) — attach an InTouch
oauthcredential. Mint one withitcli.py /oauth <provider>(device-code) or/google-auth(Google); the server auto-refreshes the access token before each run, so the connector never handles or stores tokens.
Operations
fitness_users_datasources_list— GET /{userId}/dataSources — Lists all data sources that are visible to the developer, using the OAuth scopesfitness_users_datasources_get— GET /{userId}/dataSources/{dataSourceId} — Returns the specified data source.fitness_users_datasources_datapointchanges_list— GET /{userId}/dataSources/{dataSourceId}/dataPointChanges — Queries for user's data point changes for a particular data source.fitness_users_datasources_datasets_get— GET /{userId}/dataSources/{dataSourceId}/datasets/{datasetId} — Returns a dataset containing all data points whose start and end times overlap wfitness_users_sessions_list— GET /{userId}/sessions — Lists sessions previously created.fitness_users_datasources_create— POST /{userId}/dataSources — Creates a new data source that is unique across all data sources belonging to th
Inputs
- a linked
oauthcredential (no key inputs) — the server injects a freshAuthorization: Bearerfrom it operation— one of the operations above- path parameters when an operation's path contains
{...} query— optional JSON object of query paramsbody— JSON object for create/update ops
Example
operation: fitness_users_datasources_list
# (attach an 'oauth' credential to the task — no inline secrets)
Publishes
The keys a later task may reference as {{taskName.key}}. Referencing anything not listed here resolves to nothing at run time.
erroroperationresultstatus
Input Properties
Every property this tool accepts, from its own tool.iml.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
operation |
string | yes | — | One of: fitness_users_datasources_list, fitness_users_datasources_get, fitness_users_datasources_datapointchanges_list, fitness_users_datasources_datasets_get, fitness_users_sessions_list, fitness_users_datasources_create |
dataSourceId |
string | no | — | Path parameter dataSourceId (required by some operations). |
datasetId |
string | no | — | Path parameter datasetId (required by some operations). |
userId |
string | no | — | Path parameter userId (required by some operations). |
query |
string | no | — | Optional query params as a JSON object string, e.g. {"limit": 10}. |
body |
string | no | — | Request body as a JSON object string (for create/update operations). |