| OLD | NEW |
| 1 { | 1 { |
| 2 "auth": { | 2 "auth": { |
| 3 "oauth2": { | 3 "oauth2": { |
| 4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/fitness.activity.read": { | 5 "https://www.googleapis.com/auth/fitness.activity.read": { |
| 6 "description": "View your activity information in Google Fit
" | 6 "description": "View your activity information in Google Fit
" |
| 7 }, | 7 }, |
| 8 "https://www.googleapis.com/auth/fitness.activity.write": { | 8 "https://www.googleapis.com/auth/fitness.activity.write": { |
| 9 "description": "View and store your activity information in
Google Fit" | 9 "description": "View and store your activity information in
Google Fit" |
| 10 }, | 10 }, |
| 11 "https://www.googleapis.com/auth/fitness.body.read": { | 11 "https://www.googleapis.com/auth/fitness.body.read": { |
| 12 "description": "View body sensor information in Google Fit" | 12 "description": "View body sensor information in Google Fit" |
| 13 }, | 13 }, |
| 14 "https://www.googleapis.com/auth/fitness.body.write": { | 14 "https://www.googleapis.com/auth/fitness.body.write": { |
| 15 "description": "View and store body sensor data in Google Fi
t" | 15 "description": "View and store body sensor data in Google Fi
t" |
| 16 }, | 16 }, |
| 17 "https://www.googleapis.com/auth/fitness.location.read": { | 17 "https://www.googleapis.com/auth/fitness.location.read": { |
| 18 "description": "View your stored location data in Google Fit
" | 18 "description": "View your stored location data in Google Fit
" |
| 19 }, | 19 }, |
| 20 "https://www.googleapis.com/auth/fitness.location.write": { | 20 "https://www.googleapis.com/auth/fitness.location.write": { |
| 21 "description": "View and store your location data in Google
Fit" | 21 "description": "View and store your location data in Google
Fit" |
| 22 }, |
| 23 "https://www.googleapis.com/auth/fitness.nutrition.read": { |
| 24 "description": "View nutrition information in Google Fit" |
| 25 }, |
| 26 "https://www.googleapis.com/auth/fitness.nutrition.write": { |
| 27 "description": "View and store nutrition information in Goog
le Fit" |
| 22 } | 28 } |
| 23 } | 29 } |
| 24 } | 30 } |
| 25 }, | 31 }, |
| 26 "basePath": "/fitness/v1/users/", | 32 "basePath": "/fitness/v1/users/", |
| 27 "baseUrl": "https://www.googleapis.com/fitness/v1/users/", | 33 "baseUrl": "https://www.googleapis.com/fitness/v1/users/", |
| 28 "batchPath": "batch", | 34 "batchPath": "batch", |
| 29 "description": "Stores and accesses user data in the fitness store from apps
on any platform.", | 35 "description": "Stores and accesses user data in the fitness store from apps
on any platform.", |
| 30 "discoveryVersion": "v1", | 36 "discoveryVersion": "v1", |
| 31 "documentationLink": "https://developers.google.com/fit/rest/", | 37 "documentationLink": "https://developers.google.com/fit/rest/", |
| 32 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/l7rO6CbXZHG1D23xOowyyvnzSns\"", | 38 "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/C_efOoRNuMwDVzh1-1r-3k_wkJo\"", |
| 33 "icons": { | 39 "icons": { |
| 34 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 40 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 35 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 41 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 36 }, | 42 }, |
| 37 "id": "fitness:v1", | 43 "id": "fitness:v1", |
| 38 "kind": "discovery#restDescription", | 44 "kind": "discovery#restDescription", |
| 39 "name": "fitness", | 45 "name": "fitness", |
| 40 "ownerDomain": "google.com", | 46 "ownerDomain": "google.com", |
| 41 "ownerName": "Google", | 47 "ownerName": "Google", |
| 42 "parameters": { | 48 "parameters": { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 "path": "{userId}/dataSources", | 114 "path": "{userId}/dataSources", |
| 109 "request": { | 115 "request": { |
| 110 "$ref": "DataSource" | 116 "$ref": "DataSource" |
| 111 }, | 117 }, |
| 112 "response": { | 118 "response": { |
| 113 "$ref": "DataSource" | 119 "$ref": "DataSource" |
| 114 }, | 120 }, |
| 115 "scopes": [ | 121 "scopes": [ |
| 116 "https://www.googleapis.com/auth/fitness.activit
y.write", | 122 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 117 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 123 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 118 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 124 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 125 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 119 ] | 126 ] |
| 120 }, | 127 }, |
| 121 "delete": { | 128 "delete": { |
| 122 "description": "Deletes the specified data source. T
he request will fail if the data source contains any data points.", | 129 "description": "Deletes the specified data source. T
he request will fail if the data source contains any data points.", |
| 123 "httpMethod": "DELETE", | 130 "httpMethod": "DELETE", |
| 124 "id": "fitness.users.dataSources.delete", | 131 "id": "fitness.users.dataSources.delete", |
| 125 "parameterOrder": [ | 132 "parameterOrder": [ |
| 126 "userId", | 133 "userId", |
| 127 "dataSourceId" | 134 "dataSourceId" |
| 128 ], | 135 ], |
| (...skipping 11 matching lines...) Expand all Loading... |
| 140 "type": "string" | 147 "type": "string" |
| 141 } | 148 } |
| 142 }, | 149 }, |
| 143 "path": "{userId}/dataSources/{dataSourceId}", | 150 "path": "{userId}/dataSources/{dataSourceId}", |
| 144 "response": { | 151 "response": { |
| 145 "$ref": "DataSource" | 152 "$ref": "DataSource" |
| 146 }, | 153 }, |
| 147 "scopes": [ | 154 "scopes": [ |
| 148 "https://www.googleapis.com/auth/fitness.activit
y.write", | 155 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 149 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 156 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 150 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 157 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 158 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 151 ] | 159 ] |
| 152 }, | 160 }, |
| 153 "get": { | 161 "get": { |
| 154 "description": "Returns the specified data source.", | 162 "description": "Returns the specified data source.", |
| 155 "httpMethod": "GET", | 163 "httpMethod": "GET", |
| 156 "id": "fitness.users.dataSources.get", | 164 "id": "fitness.users.dataSources.get", |
| 157 "parameterOrder": [ | 165 "parameterOrder": [ |
| 158 "userId", | 166 "userId", |
| 159 "dataSourceId" | 167 "dataSourceId" |
| 160 ], | 168 ], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 175 "path": "{userId}/dataSources/{dataSourceId}", | 183 "path": "{userId}/dataSources/{dataSourceId}", |
| 176 "response": { | 184 "response": { |
| 177 "$ref": "DataSource" | 185 "$ref": "DataSource" |
| 178 }, | 186 }, |
| 179 "scopes": [ | 187 "scopes": [ |
| 180 "https://www.googleapis.com/auth/fitness.activit
y.read", | 188 "https://www.googleapis.com/auth/fitness.activit
y.read", |
| 181 "https://www.googleapis.com/auth/fitness.activit
y.write", | 189 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 182 "https://www.googleapis.com/auth/fitness.body.re
ad", | 190 "https://www.googleapis.com/auth/fitness.body.re
ad", |
| 183 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 191 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 184 "https://www.googleapis.com/auth/fitness.locatio
n.read", | 192 "https://www.googleapis.com/auth/fitness.locatio
n.read", |
| 185 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 193 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 194 "https://www.googleapis.com/auth/fitness.nutriti
on.read", |
| 195 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 186 ] | 196 ] |
| 187 }, | 197 }, |
| 188 "list": { | 198 "list": { |
| 189 "description": "Lists all data sources that are visi
ble to the developer, using the OAuth scopes provided. The list is not exhaustiv
e; the user may have private data sources that are only visible to other develop
ers, or calls using other scopes.", | 199 "description": "Lists all data sources that are visi
ble to the developer, using the OAuth scopes provided. The list is not exhaustiv
e; the user may have private data sources that are only visible to other develop
ers, or calls using other scopes.", |
| 190 "httpMethod": "GET", | 200 "httpMethod": "GET", |
| 191 "id": "fitness.users.dataSources.list", | 201 "id": "fitness.users.dataSources.list", |
| 192 "parameterOrder": [ | 202 "parameterOrder": [ |
| 193 "userId" | 203 "userId" |
| 194 ], | 204 ], |
| 195 "parameters": { | 205 "parameters": { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 209 "path": "{userId}/dataSources", | 219 "path": "{userId}/dataSources", |
| 210 "response": { | 220 "response": { |
| 211 "$ref": "ListDataSourcesResponse" | 221 "$ref": "ListDataSourcesResponse" |
| 212 }, | 222 }, |
| 213 "scopes": [ | 223 "scopes": [ |
| 214 "https://www.googleapis.com/auth/fitness.activit
y.read", | 224 "https://www.googleapis.com/auth/fitness.activit
y.read", |
| 215 "https://www.googleapis.com/auth/fitness.activit
y.write", | 225 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 216 "https://www.googleapis.com/auth/fitness.body.re
ad", | 226 "https://www.googleapis.com/auth/fitness.body.re
ad", |
| 217 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 227 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 218 "https://www.googleapis.com/auth/fitness.locatio
n.read", | 228 "https://www.googleapis.com/auth/fitness.locatio
n.read", |
| 219 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 229 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 230 "https://www.googleapis.com/auth/fitness.nutriti
on.read", |
| 231 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 220 ] | 232 ] |
| 221 }, | 233 }, |
| 222 "patch": { | 234 "patch": { |
| 223 "description": "Updates the specified data source. T
he dataStreamId, dataType, type, dataStreamName, and device properties with the
exception of version, cannot be modified.\n\nData sources are identified by thei
r dataStreamId. This method supports patch semantics.", | 235 "description": "Updates the specified data source. T
he dataStreamId, dataType, type, dataStreamName, and device properties with the
exception of version, cannot be modified.\n\nData sources are identified by thei
r dataStreamId. This method supports patch semantics.", |
| 224 "httpMethod": "PATCH", | 236 "httpMethod": "PATCH", |
| 225 "id": "fitness.users.dataSources.patch", | 237 "id": "fitness.users.dataSources.patch", |
| 226 "parameterOrder": [ | 238 "parameterOrder": [ |
| 227 "userId", | 239 "userId", |
| 228 "dataSourceId" | 240 "dataSourceId" |
| 229 ], | 241 ], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 244 "path": "{userId}/dataSources/{dataSourceId}", | 256 "path": "{userId}/dataSources/{dataSourceId}", |
| 245 "request": { | 257 "request": { |
| 246 "$ref": "DataSource" | 258 "$ref": "DataSource" |
| 247 }, | 259 }, |
| 248 "response": { | 260 "response": { |
| 249 "$ref": "DataSource" | 261 "$ref": "DataSource" |
| 250 }, | 262 }, |
| 251 "scopes": [ | 263 "scopes": [ |
| 252 "https://www.googleapis.com/auth/fitness.activit
y.write", | 264 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 253 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 265 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 254 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 266 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 267 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 255 ] | 268 ] |
| 256 }, | 269 }, |
| 257 "update": { | 270 "update": { |
| 258 "description": "Updates the specified data source. T
he dataStreamId, dataType, type, dataStreamName, and device properties with the
exception of version, cannot be modified.\n\nData sources are identified by thei
r dataStreamId.", | 271 "description": "Updates the specified data source. T
he dataStreamId, dataType, type, dataStreamName, and device properties with the
exception of version, cannot be modified.\n\nData sources are identified by thei
r dataStreamId.", |
| 259 "httpMethod": "PUT", | 272 "httpMethod": "PUT", |
| 260 "id": "fitness.users.dataSources.update", | 273 "id": "fitness.users.dataSources.update", |
| 261 "parameterOrder": [ | 274 "parameterOrder": [ |
| 262 "userId", | 275 "userId", |
| 263 "dataSourceId" | 276 "dataSourceId" |
| 264 ], | 277 ], |
| (...skipping 14 matching lines...) Expand all Loading... |
| 279 "path": "{userId}/dataSources/{dataSourceId}", | 292 "path": "{userId}/dataSources/{dataSourceId}", |
| 280 "request": { | 293 "request": { |
| 281 "$ref": "DataSource" | 294 "$ref": "DataSource" |
| 282 }, | 295 }, |
| 283 "response": { | 296 "response": { |
| 284 "$ref": "DataSource" | 297 "$ref": "DataSource" |
| 285 }, | 298 }, |
| 286 "scopes": [ | 299 "scopes": [ |
| 287 "https://www.googleapis.com/auth/fitness.activit
y.write", | 300 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 288 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 301 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 289 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 302 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 303 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 290 ] | 304 ] |
| 291 } | 305 } |
| 292 }, | 306 }, |
| 293 "resources": { | 307 "resources": { |
| 294 "datasets": { | 308 "datasets": { |
| 295 "methods": { | 309 "methods": { |
| 296 "delete": { | 310 "delete": { |
| 297 "description": "Performs an inclusive delete
of all data points whose start and end times have any overlap with the time ran
ge specified by the dataset ID. For most data types, the entire data point will
be deleted. For data types where the time span represents a consistent value (su
ch as com.google.activity.segment), and a data point straddles either end point
of the dataset, only the overlapping portion of the data point will be deleted."
, | 311 "description": "Performs an inclusive delete
of all data points whose start and end times have any overlap with the time ran
ge specified by the dataset ID. For most data types, the entire data point will
be deleted. For data types where the time span represents a consistent value (su
ch as com.google.activity.segment), and a data point straddles either end point
of the dataset, only the overlapping portion of the data point will be deleted."
, |
| 298 "httpMethod": "DELETE", | 312 "httpMethod": "DELETE", |
| 299 "id": "fitness.users.dataSources.datasets.de
lete", | 313 "id": "fitness.users.dataSources.datasets.de
lete", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 "description": "Delete a dataset for
the person identified. Use me to indicate the authenticated user. Only me is su
pported at this time.", | 345 "description": "Delete a dataset for
the person identified. Use me to indicate the authenticated user. Only me is su
pported at this time.", |
| 332 "location": "path", | 346 "location": "path", |
| 333 "required": true, | 347 "required": true, |
| 334 "type": "string" | 348 "type": "string" |
| 335 } | 349 } |
| 336 }, | 350 }, |
| 337 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", | 351 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", |
| 338 "scopes": [ | 352 "scopes": [ |
| 339 "https://www.googleapis.com/auth/fitness
.activity.write", | 353 "https://www.googleapis.com/auth/fitness
.activity.write", |
| 340 "https://www.googleapis.com/auth/fitness
.body.write", | 354 "https://www.googleapis.com/auth/fitness
.body.write", |
| 341 "https://www.googleapis.com/auth/fitness
.location.write" | 355 "https://www.googleapis.com/auth/fitness
.location.write", |
| 356 "https://www.googleapis.com/auth/fitness
.nutrition.write" |
| 342 ] | 357 ] |
| 343 }, | 358 }, |
| 344 "get": { | 359 "get": { |
| 345 "description": "Returns a dataset containing
all data points whose start and end times overlap with the specified range of t
he dataset minimum start time and maximum end time. Specifically, any data point
whose start time is less than or equal to the dataset end time and whose end ti
me is greater than or equal to the dataset start time.", | 360 "description": "Returns a dataset containing
all data points whose start and end times overlap with the specified range of t
he dataset minimum start time and maximum end time. Specifically, any data point
whose start time is less than or equal to the dataset end time and whose end ti
me is greater than or equal to the dataset start time.", |
| 346 "httpMethod": "GET", | 361 "httpMethod": "GET", |
| 347 "id": "fitness.users.dataSources.datasets.ge
t", | 362 "id": "fitness.users.dataSources.datasets.ge
t", |
| 348 "parameterOrder": [ | 363 "parameterOrder": [ |
| 349 "userId", | 364 "userId", |
| 350 "dataSourceId", | 365 "dataSourceId", |
| 351 "datasetId" | 366 "datasetId" |
| 352 ], | 367 ], |
| 353 "parameters": { | 368 "parameters": { |
| 354 "dataSourceId": { | 369 "dataSourceId": { |
| 355 "description": "The data stream ID o
f the data source that created the dataset.", | 370 "description": "The data stream ID o
f the data source that created the dataset.", |
| 356 "location": "path", | 371 "location": "path", |
| 357 "required": true, | 372 "required": true, |
| 358 "type": "string" | 373 "type": "string" |
| 359 }, | 374 }, |
| 360 "datasetId": { | 375 "datasetId": { |
| 361 "description": "Dataset identifier t
hat is a composite of the minimum data point start time and maximum data point e
nd time represented as nanoseconds from the epoch. The ID is formatted like: \"s
tartTime-endTime\" where startTime and endTime are 64 bit integers.", | 376 "description": "Dataset identifier t
hat is a composite of the minimum data point start time and maximum data point e
nd time represented as nanoseconds from the epoch. The ID is formatted like: \"s
tartTime-endTime\" where startTime and endTime are 64 bit integers.", |
| 362 "location": "path", | 377 "location": "path", |
| 363 "required": true, | 378 "required": true, |
| 364 "type": "string" | 379 "type": "string" |
| 365 }, | 380 }, |
| 366 "limit": { | 381 "limit": { |
| 367 "description": "If specified, no mor
e than this many data points will be included in the dataset. If the there are m
ore data points in the dataset, nextPageToken will be set in the dataset respons
e.", | 382 "description": "If specified, no mor
e than this many data points will be included in the dataset. If there are more
data points in the dataset, nextPageToken will be set in the dataset response.", |
| 368 "format": "int32", | 383 "format": "int32", |
| 369 "location": "query", | 384 "location": "query", |
| 370 "type": "integer" | 385 "type": "integer" |
| 371 }, | 386 }, |
| 372 "pageToken": { | 387 "pageToken": { |
| 373 "description": "The continuation tok
en, which is used to page through large datasets. To get the next page of a data
set, set this parameter to the value of nextPageToken from the previous response
. Each subsequent call will yield a partial dataset with data point end timestam
ps that are strictly smaller than those in the previous partial response.", | 388 "description": "The continuation tok
en, which is used to page through large datasets. To get the next page of a data
set, set this parameter to the value of nextPageToken from the previous response
. Each subsequent call will yield a partial dataset with data point end timestam
ps that are strictly smaller than those in the previous partial response.", |
| 374 "location": "query", | 389 "location": "query", |
| 375 "type": "string" | 390 "type": "string" |
| 376 }, | 391 }, |
| 377 "userId": { | 392 "userId": { |
| 378 "description": "Retrieve a dataset f
or the person identified. Use me to indicate the authenticated user. Only me is
supported at this time.", | 393 "description": "Retrieve a dataset f
or the person identified. Use me to indicate the authenticated user. Only me is
supported at this time.", |
| 379 "location": "path", | 394 "location": "path", |
| 380 "required": true, | 395 "required": true, |
| 381 "type": "string" | 396 "type": "string" |
| 382 } | 397 } |
| 383 }, | 398 }, |
| 384 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", | 399 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", |
| 385 "response": { | 400 "response": { |
| 386 "$ref": "Dataset" | 401 "$ref": "Dataset" |
| 387 }, | 402 }, |
| 388 "scopes": [ | 403 "scopes": [ |
| 389 "https://www.googleapis.com/auth/fitness
.activity.read", | 404 "https://www.googleapis.com/auth/fitness
.activity.read", |
| 390 "https://www.googleapis.com/auth/fitness
.activity.write", | 405 "https://www.googleapis.com/auth/fitness
.activity.write", |
| 391 "https://www.googleapis.com/auth/fitness
.body.read", | 406 "https://www.googleapis.com/auth/fitness
.body.read", |
| 392 "https://www.googleapis.com/auth/fitness
.body.write", | 407 "https://www.googleapis.com/auth/fitness
.body.write", |
| 393 "https://www.googleapis.com/auth/fitness
.location.read", | 408 "https://www.googleapis.com/auth/fitness
.location.read", |
| 394 "https://www.googleapis.com/auth/fitness
.location.write" | 409 "https://www.googleapis.com/auth/fitness
.location.write", |
| 410 "https://www.googleapis.com/auth/fitness
.nutrition.read", |
| 411 "https://www.googleapis.com/auth/fitness
.nutrition.write" |
| 395 ] | 412 ] |
| 396 }, | 413 }, |
| 397 "patch": { | 414 "patch": { |
| 398 "description": "Adds data points to a datase
t. The dataset need not be previously created. All points within the given datas
et will be returned with subsquent calls to retrieve this dataset. Data points c
an belong to more than one dataset. This method does not use patch semantics.", | 415 "description": "Adds data points to a datase
t. The dataset need not be previously created. All points within the given datas
et will be returned with subsquent calls to retrieve this dataset. Data points c
an belong to more than one dataset. This method does not use patch semantics.", |
| 399 "httpMethod": "PATCH", | 416 "httpMethod": "PATCH", |
| 400 "id": "fitness.users.dataSources.datasets.pa
tch", | 417 "id": "fitness.users.dataSources.datasets.pa
tch", |
| 401 "parameterOrder": [ | 418 "parameterOrder": [ |
| 402 "userId", | 419 "userId", |
| 403 "dataSourceId", | 420 "dataSourceId", |
| 404 "datasetId" | 421 "datasetId" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 432 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", | 449 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", |
| 433 "request": { | 450 "request": { |
| 434 "$ref": "Dataset" | 451 "$ref": "Dataset" |
| 435 }, | 452 }, |
| 436 "response": { | 453 "response": { |
| 437 "$ref": "Dataset" | 454 "$ref": "Dataset" |
| 438 }, | 455 }, |
| 439 "scopes": [ | 456 "scopes": [ |
| 440 "https://www.googleapis.com/auth/fitness
.activity.write", | 457 "https://www.googleapis.com/auth/fitness
.activity.write", |
| 441 "https://www.googleapis.com/auth/fitness
.body.write", | 458 "https://www.googleapis.com/auth/fitness
.body.write", |
| 442 "https://www.googleapis.com/auth/fitness
.location.write" | 459 "https://www.googleapis.com/auth/fitness
.location.write", |
| 460 "https://www.googleapis.com/auth/fitness
.nutrition.write" |
| 443 ] | 461 ] |
| 444 } | 462 } |
| 445 } | 463 } |
| 446 } | 464 } |
| 447 } | 465 } |
| 448 }, | 466 }, |
| 449 "dataset": { | 467 "dataset": { |
| 450 "methods": { | 468 "methods": { |
| 451 "aggregate": { | 469 "aggregate": { |
| 452 "description": "Aggregates data of a certain type or
stream into buckets divided by a given type of boundary. Multiple data sets of
multiple types and from multiple sources can be aggreated into exactly one bucke
t type per request.", | 470 "description": "Aggregates data of a certain type or
stream into buckets divided by a given type of boundary. Multiple data sets of
multiple types and from multiple sources can be aggreated into exactly one bucke
t type per request.", |
| (...skipping 16 matching lines...) Expand all Loading... |
| 469 }, | 487 }, |
| 470 "response": { | 488 "response": { |
| 471 "$ref": "AggregateResponse" | 489 "$ref": "AggregateResponse" |
| 472 }, | 490 }, |
| 473 "scopes": [ | 491 "scopes": [ |
| 474 "https://www.googleapis.com/auth/fitness.activit
y.read", | 492 "https://www.googleapis.com/auth/fitness.activit
y.read", |
| 475 "https://www.googleapis.com/auth/fitness.activit
y.write", | 493 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 476 "https://www.googleapis.com/auth/fitness.body.re
ad", | 494 "https://www.googleapis.com/auth/fitness.body.re
ad", |
| 477 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 495 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 478 "https://www.googleapis.com/auth/fitness.locatio
n.read", | 496 "https://www.googleapis.com/auth/fitness.locatio
n.read", |
| 479 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 497 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 498 "https://www.googleapis.com/auth/fitness.nutriti
on.read", |
| 499 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 480 ] | 500 ] |
| 481 } | 501 } |
| 482 } | 502 } |
| 483 }, | 503 }, |
| 484 "sessions": { | 504 "sessions": { |
| 485 "methods": { | 505 "methods": { |
| 486 "delete": { | 506 "delete": { |
| 487 "description": "Deletes a session specified by the g
iven session ID.", | 507 "description": "Deletes a session specified by the g
iven session ID.", |
| 488 "httpMethod": "DELETE", | 508 "httpMethod": "DELETE", |
| 489 "id": "fitness.users.sessions.delete", | 509 "id": "fitness.users.sessions.delete", |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 "path": "{userId}/sessions", | 574 "path": "{userId}/sessions", |
| 555 "response": { | 575 "response": { |
| 556 "$ref": "ListSessionsResponse" | 576 "$ref": "ListSessionsResponse" |
| 557 }, | 577 }, |
| 558 "scopes": [ | 578 "scopes": [ |
| 559 "https://www.googleapis.com/auth/fitness.activit
y.read", | 579 "https://www.googleapis.com/auth/fitness.activit
y.read", |
| 560 "https://www.googleapis.com/auth/fitness.activit
y.write", | 580 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 561 "https://www.googleapis.com/auth/fitness.body.re
ad", | 581 "https://www.googleapis.com/auth/fitness.body.re
ad", |
| 562 "https://www.googleapis.com/auth/fitness.body.wr
ite", | 582 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 563 "https://www.googleapis.com/auth/fitness.locatio
n.read", | 583 "https://www.googleapis.com/auth/fitness.locatio
n.read", |
| 564 "https://www.googleapis.com/auth/fitness.locatio
n.write" | 584 "https://www.googleapis.com/auth/fitness.locatio
n.write", |
| 585 "https://www.googleapis.com/auth/fitness.nutriti
on.read", |
| 586 "https://www.googleapis.com/auth/fitness.nutriti
on.write" |
| 565 ] | 587 ] |
| 566 }, | 588 }, |
| 567 "update": { | 589 "update": { |
| 568 "description": "Updates or insert a given session.", | 590 "description": "Updates or insert a given session.", |
| 569 "httpMethod": "PUT", | 591 "httpMethod": "PUT", |
| 570 "id": "fitness.users.sessions.update", | 592 "id": "fitness.users.sessions.update", |
| 571 "parameterOrder": [ | 593 "parameterOrder": [ |
| 572 "userId", | 594 "userId", |
| 573 "sessionId" | 595 "sessionId" |
| 574 ], | 596 ], |
| (...skipping 26 matching lines...) Expand all Loading... |
| 601 }, | 623 }, |
| 602 "scopes": [ | 624 "scopes": [ |
| 603 "https://www.googleapis.com/auth/fitness.activit
y.write" | 625 "https://www.googleapis.com/auth/fitness.activit
y.write" |
| 604 ] | 626 ] |
| 605 } | 627 } |
| 606 } | 628 } |
| 607 } | 629 } |
| 608 } | 630 } |
| 609 } | 631 } |
| 610 }, | 632 }, |
| 611 "revision": "20160609", | 633 "revision": "20160801", |
| 612 "rootUrl": "https://www.googleapis.com/", | 634 "rootUrl": "https://www.googleapis.com/", |
| 613 "schemas": { | 635 "schemas": { |
| 614 "AggregateBucket": { | 636 "AggregateBucket": { |
| 615 "id": "AggregateBucket", | 637 "id": "AggregateBucket", |
| 616 "properties": { | 638 "properties": { |
| 617 "activity": { | 639 "activity": { |
| 618 "description": "Available for Bucket.Type.ACTIVITY_TYPE, Buc
ket.Type.ACTIVITY_SEGMENT", | 640 "description": "Available for Bucket.Type.ACTIVITY_TYPE, Buc
ket.Type.ACTIVITY_SEGMENT", |
| 619 "format": "int32", | 641 "format": "int32", |
| 620 "type": "integer" | 642 "type": "integer" |
| 621 }, | 643 }, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 710 "endTimeMillis": { | 732 "endTimeMillis": { |
| 711 "annotations": { | 733 "annotations": { |
| 712 "required": [ | 734 "required": [ |
| 713 "fitness.users.dataset.aggregate" | 735 "fitness.users.dataset.aggregate" |
| 714 ] | 736 ] |
| 715 }, | 737 }, |
| 716 "description": "The end of a window of time. Data that inter
sects with this time window will be aggregated. The time is in milliseconds sinc
e epoch, inclusive.", | 738 "description": "The end of a window of time. Data that inter
sects with this time window will be aggregated. The time is in milliseconds sinc
e epoch, inclusive.", |
| 717 "format": "int64", | 739 "format": "int64", |
| 718 "type": "string" | 740 "type": "string" |
| 719 }, | 741 }, |
| 742 "filteredDataQualityStandard": { |
| 743 "description": "A list of acceptable data quality standards.
Only data points which conform to at least one of the specified data quality st
andards will be returned. If the list is empty, all data points are returned.", |
| 744 "items": { |
| 745 "enum": [ |
| 746 "dataQualityBloodGlucoseIso151972003", |
| 747 "dataQualityBloodGlucoseIso151972013", |
| 748 "dataQualityBloodPressureAami", |
| 749 "dataQualityBloodPressureBhsAA", |
| 750 "dataQualityBloodPressureBhsAB", |
| 751 "dataQualityBloodPressureBhsBA", |
| 752 "dataQualityBloodPressureBhsBB", |
| 753 "dataQualityBloodPressureEsh2002", |
| 754 "dataQualityBloodPressureEsh2010", |
| 755 "dataQualityUnknown" |
| 756 ], |
| 757 "enumDescriptions": [ |
| 758 "", |
| 759 "", |
| 760 "", |
| 761 "", |
| 762 "", |
| 763 "", |
| 764 "", |
| 765 "", |
| 766 "", |
| 767 "" |
| 768 ], |
| 769 "type": "string" |
| 770 }, |
| 771 "type": "array" |
| 772 }, |
| 720 "startTimeMillis": { | 773 "startTimeMillis": { |
| 721 "annotations": { | 774 "annotations": { |
| 722 "required": [ | 775 "required": [ |
| 723 "fitness.users.dataset.aggregate" | 776 "fitness.users.dataset.aggregate" |
| 724 ] | 777 ] |
| 725 }, | 778 }, |
| 726 "description": "The start of a window of time. Data that int
ersects with this time window will be aggregated. The time is in milliseconds si
nce epoch, inclusive.", | 779 "description": "The start of a window of time. Data that int
ersects with this time window will be aggregated. The time is in milliseconds si
nce epoch, inclusive.", |
| 727 "format": "int64", | 780 "format": "int64", |
| 728 "type": "string" | 781 "type": "string" |
| 729 } | 782 } |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 "fitness.users.dataSources.create", | 971 "fitness.users.dataSources.create", |
| 919 "fitness.users.dataSources.update" | 972 "fitness.users.dataSources.update" |
| 920 ] | 973 ] |
| 921 }, | 974 }, |
| 922 "description": "Information about an application which feeds
sensor data into the platform." | 975 "description": "Information about an application which feeds
sensor data into the platform." |
| 923 }, | 976 }, |
| 924 "dataQualityStandard": { | 977 "dataQualityStandard": { |
| 925 "description": "", | 978 "description": "", |
| 926 "items": { | 979 "items": { |
| 927 "enum": [ | 980 "enum": [ |
| 981 "dataQualityBloodGlucoseIso151972003", |
| 982 "dataQualityBloodGlucoseIso151972013", |
| 983 "dataQualityBloodPressureAami", |
| 984 "dataQualityBloodPressureBhsAA", |
| 985 "dataQualityBloodPressureBhsAB", |
| 986 "dataQualityBloodPressureBhsBA", |
| 987 "dataQualityBloodPressureBhsBB", |
| 928 "dataQualityBloodPressureEsh2002", | 988 "dataQualityBloodPressureEsh2002", |
| 989 "dataQualityBloodPressureEsh2010", |
| 929 "dataQualityUnknown" | 990 "dataQualityUnknown" |
| 930 ], | 991 ], |
| 931 "enumDescriptions": [ | 992 "enumDescriptions": [ |
| 932 "", | 993 "", |
| 994 "", |
| 995 "", |
| 996 "", |
| 997 "", |
| 998 "", |
| 999 "", |
| 1000 "", |
| 1001 "", |
| 933 "" | 1002 "" |
| 934 ], | 1003 ], |
| 935 "type": "string" | 1004 "type": "string" |
| 936 }, | 1005 }, |
| 937 "type": "array" | 1006 "type": "array" |
| 938 }, | 1007 }, |
| 939 "dataStreamId": { | 1008 "dataStreamId": { |
| 940 "annotations": { | 1009 "annotations": { |
| 941 "required": [ | 1010 "required": [ |
| 942 "fitness.users.dataSources.update" | 1011 "fitness.users.dataSources.update" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 "type": { | 1220 "type": { |
| 1152 "annotations": { | 1221 "annotations": { |
| 1153 "required": [ | 1222 "required": [ |
| 1154 "fitness.users.dataSources.create", | 1223 "fitness.users.dataSources.create", |
| 1155 "fitness.users.dataSources.update" | 1224 "fitness.users.dataSources.update" |
| 1156 ] | 1225 ] |
| 1157 }, | 1226 }, |
| 1158 "description": "A constant representing the type of the devi
ce.", | 1227 "description": "A constant representing the type of the devi
ce.", |
| 1159 "enum": [ | 1228 "enum": [ |
| 1160 "chestStrap", | 1229 "chestStrap", |
| 1230 "headMounted", |
| 1161 "phone", | 1231 "phone", |
| 1162 "scale", | 1232 "scale", |
| 1163 "tablet", | 1233 "tablet", |
| 1164 "unknown", | 1234 "unknown", |
| 1165 "watch" | 1235 "watch" |
| 1166 ], | 1236 ], |
| 1167 "enumDescriptions": [ | 1237 "enumDescriptions": [ |
| 1168 "", | 1238 "", |
| 1169 "", | 1239 "", |
| 1170 "", | 1240 "", |
| 1171 "", | 1241 "", |
| 1172 "", | 1242 "", |
| 1243 "", |
| 1173 "" | 1244 "" |
| 1174 ], | 1245 ], |
| 1175 "type": "string" | 1246 "type": "string" |
| 1176 }, | 1247 }, |
| 1177 "uid": { | 1248 "uid": { |
| 1178 "annotations": { | 1249 "annotations": { |
| 1179 "required": [ | 1250 "required": [ |
| 1180 "fitness.users.dataSources.create", | 1251 "fitness.users.dataSources.create", |
| 1181 "fitness.users.dataSources.update" | 1252 "fitness.users.dataSources.update" |
| 1182 ] | 1253 ] |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1362 "$ref": "MapValue" | 1433 "$ref": "MapValue" |
| 1363 } | 1434 } |
| 1364 }, | 1435 }, |
| 1365 "type": "object" | 1436 "type": "object" |
| 1366 } | 1437 } |
| 1367 }, | 1438 }, |
| 1368 "servicePath": "fitness/v1/users/", | 1439 "servicePath": "fitness/v1/users/", |
| 1369 "title": "Fitness", | 1440 "title": "Fitness", |
| 1370 "version": "v1" | 1441 "version": "v1" |
| 1371 } | 1442 } |
| OLD | NEW |