| 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 }, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 "description": "View and store your location data in Google
Fit" | 21 "description": "View and store your location data in Google
Fit" |
| 22 } | 22 } |
| 23 } | 23 } |
| 24 } | 24 } |
| 25 }, | 25 }, |
| 26 "basePath": "/fitness/v1/users/", | 26 "basePath": "/fitness/v1/users/", |
| 27 "baseUrl": "https://www.googleapis.com/fitness/v1/users/", | 27 "baseUrl": "https://www.googleapis.com/fitness/v1/users/", |
| 28 "batchPath": "batch", | 28 "batchPath": "batch", |
| 29 "description": "Google Fit API", | 29 "description": "Google Fit API", |
| 30 "discoveryVersion": "v1", | 30 "discoveryVersion": "v1", |
| 31 "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/TfpgqPaBHwKM6ZXQvQNWyFJhjHY\"", | 31 "documentationLink": "https://developers.google.com/fit/rest/", |
| 32 "etag": "\"l66ggWbucbkBw9Lpos72oziyefE/yxNeceYSHu-EXL2AcqvgpSJSqDU\"", |
| 32 "icons": { | 33 "icons": { |
| 33 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 34 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 34 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 35 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 35 }, | 36 }, |
| 36 "id": "fitness:v1", | 37 "id": "fitness:v1", |
| 37 "kind": "discovery#restDescription", | 38 "kind": "discovery#restDescription", |
| 38 "name": "fitness", | 39 "name": "fitness", |
| 39 "ownerDomain": "google.com", | 40 "ownerDomain": "google.com", |
| 40 "ownerName": "Google", | 41 "ownerName": "Google", |
| 41 "parameters": { | 42 "parameters": { |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 "location": "path", | 324 "location": "path", |
| 324 "required": true, | 325 "required": true, |
| 325 "type": "string" | 326 "type": "string" |
| 326 }, | 327 }, |
| 327 "datasetId": { | 328 "datasetId": { |
| 328 "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.", | 329 "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.", |
| 329 "location": "path", | 330 "location": "path", |
| 330 "required": true, | 331 "required": true, |
| 331 "type": "string" | 332 "type": "string" |
| 332 }, | 333 }, |
| 334 "pageToken": { |
| 335 "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.", |
| 336 "location": "query", |
| 337 "type": "string" |
| 338 }, |
| 333 "userId": { | 339 "userId": { |
| 334 "description": "Retrieve a dataset f
or the person identified. Use me to indicate the authenticated user. Only me is
supported at this time.", | 340 "description": "Retrieve a dataset f
or the person identified. Use me to indicate the authenticated user. Only me is
supported at this time.", |
| 335 "location": "path", | 341 "location": "path", |
| 336 "required": true, | 342 "required": true, |
| 337 "type": "string" | 343 "type": "string" |
| 338 } | 344 } |
| 339 }, | 345 }, |
| 340 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", | 346 "path": "{userId}/dataSources/{dataSourceId}
/datasets/{datasetId}", |
| 341 "response": { | 347 "response": { |
| 342 "$ref": "Dataset" | 348 "$ref": "Dataset" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 }, | 528 }, |
| 523 "scopes": [ | 529 "scopes": [ |
| 524 "https://www.googleapis.com/auth/fitness.activit
y.write" | 530 "https://www.googleapis.com/auth/fitness.activit
y.write" |
| 525 ] | 531 ] |
| 526 } | 532 } |
| 527 } | 533 } |
| 528 } | 534 } |
| 529 } | 535 } |
| 530 } | 536 } |
| 531 }, | 537 }, |
| 532 "revision": "20141030", | 538 "revision": "20141107", |
| 533 "rootUrl": "https://www.googleapis.com/", | 539 "rootUrl": "https://www.googleapis.com/", |
| 534 "schemas": { | 540 "schemas": { |
| 535 "Application": { | 541 "Application": { |
| 536 "description": "See: google3/java/com/google/android/apps/heart/plat
form/api/Application.java", | 542 "description": "See: google3/java/com/google/android/apps/heart/plat
form/api/Application.java", |
| 537 "id": "Application", | 543 "id": "Application", |
| 538 "properties": { | 544 "properties": { |
| 539 "detailsUrl": { | 545 "detailsUrl": { |
| 540 "description": "An optional URI that can be used to link bac
k to the application.", | 546 "description": "An optional URI that can be used to link bac
k to the application.", |
| 541 "type": "string" | 547 "type": "string" |
| 542 }, | 548 }, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 "minStartTimeNs": { | 798 "minStartTimeNs": { |
| 793 "annotations": { | 799 "annotations": { |
| 794 "required": [ | 800 "required": [ |
| 795 "fitness.users.dataSources.datasets.patch" | 801 "fitness.users.dataSources.datasets.patch" |
| 796 ] | 802 ] |
| 797 }, | 803 }, |
| 798 "description": "The smallest start time of all data points i
n this possibly partial representation of the dataset. Time is in nanoseconds fr
om epoch. This should also match the first part of the dataset identifier.", | 804 "description": "The smallest start time of all data points i
n this possibly partial representation of the dataset. Time is in nanoseconds fr
om epoch. This should also match the first part of the dataset identifier.", |
| 799 "format": "int64", | 805 "format": "int64", |
| 800 "type": "string" | 806 "type": "string" |
| 801 }, | 807 }, |
| 808 "nextPageToken": { |
| 809 "description": "This token will be set when a dataset is rec
eived in response to a GET request and the dataset is too large to be included i
n a single response. Provide this value in a subsequent GET request to return th
e next page of data points within this dataset.", |
| 810 "type": "string" |
| 811 }, |
| 802 "point": { | 812 "point": { |
| 803 "annotations": { | 813 "annotations": { |
| 804 "required": [ | 814 "required": [ |
| 805 "fitness.users.dataSources.datasets.patch" | 815 "fitness.users.dataSources.datasets.patch" |
| 806 ] | 816 ] |
| 807 }, | 817 }, |
| 808 "description": "A partial list of data points contained in t
he dataset. This list is considered complete when retrieving a dataset and parti
al when patching a dataset.", | 818 "description": "A partial list of data points contained in t
he dataset, ordered by largest endTimeNanos first. This list is considered compl
ete when retrieving a small dataset and partial when patching a dataset or retri
eving a dataset that is too large to include in a single response.", |
| 809 "items": { | 819 "items": { |
| 810 "$ref": "DataPoint" | 820 "$ref": "DataPoint" |
| 811 }, | 821 }, |
| 812 "type": "array" | 822 "type": "array" |
| 813 } | 823 } |
| 814 }, | 824 }, |
| 815 "type": "object" | 825 "type": "object" |
| 816 }, | 826 }, |
| 817 "Device": { | 827 "Device": { |
| 818 "description": "Representation of an integrated device (such as a ph
one or a wearable) that can hold sensors. Each sensor is exposed as a data sourc
e.\n\nThe main purpose of the device information contained in this class is to i
dentify the hardware of a particular data source. This can be useful in differen
t ways, including: \n- Distinguishing two similar sensors on different devices
(the step counter on two nexus 5 phones, for instance)\n- Display the source of
data to the user (by using the device make / model)\n- Treat data differently de
pending on sensor type (accelerometers on a watch may give different patterns th
an those on a phone)\n- Build different analysis models for each device/version.
", | 828 "description": "Representation of an integrated device (such as a ph
one or a wearable) that can hold sensors. Each sensor is exposed as a data sourc
e.\n\nThe main purpose of the device information contained in this class is to i
dentify the hardware of a particular data source. This can be useful in differen
t ways, including: \n- Distinguishing two similar sensors on different devices
(the step counter on two nexus 5 phones, for instance)\n- Display the source of
data to the user (by using the device make / model)\n- Treat data differently de
pending on sensor type (accelerometers on a watch may give different patterns th
an those on a phone)\n- Build different analysis models for each device/version.
", |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 "type": "string" | 1005 "type": "string" |
| 996 } | 1006 } |
| 997 }, | 1007 }, |
| 998 "type": "object" | 1008 "type": "object" |
| 999 }, | 1009 }, |
| 1000 "Value": { | 1010 "Value": { |
| 1001 "description": "Holder object for the value of a single field in a d
ata point.\n\nA field value has a particular format and is only ever set to one
of an integer or a floating point value.", | 1011 "description": "Holder object for the value of a single field in a d
ata point.\n\nA field value has a particular format and is only ever set to one
of an integer or a floating point value.", |
| 1002 "id": "Value", | 1012 "id": "Value", |
| 1003 "properties": { | 1013 "properties": { |
| 1004 "fpVal": { | 1014 "fpVal": { |
| 1005 "annotations": { | 1015 "description": "Floating point value. When this is set, intV
al must not be set.", |
| 1006 "required": [ | |
| 1007 "fitness.users.dataSources.datasets.patch" | |
| 1008 ] | |
| 1009 }, | |
| 1010 "description": "Floating point value.", | |
| 1011 "format": "double", | 1016 "format": "double", |
| 1012 "type": "number" | 1017 "type": "number" |
| 1013 }, | 1018 }, |
| 1014 "intVal": { | 1019 "intVal": { |
| 1015 "annotations": { | 1020 "description": "Integer value. When this is set, fpVal must
not be set.", |
| 1016 "required": [ | |
| 1017 "fitness.users.dataSources.datasets.patch" | |
| 1018 ] | |
| 1019 }, | |
| 1020 "description": "Integer value.", | |
| 1021 "format": "int32", | 1021 "format": "int32", |
| 1022 "type": "integer" | 1022 "type": "integer" |
| 1023 } | 1023 } |
| 1024 }, | 1024 }, |
| 1025 "type": "object" | 1025 "type": "object" |
| 1026 } | 1026 } |
| 1027 }, | 1027 }, |
| 1028 "servicePath": "fitness/v1/users/", | 1028 "servicePath": "fitness/v1/users/", |
| 1029 "title": "Fitness", | 1029 "title": "Fitness", |
| 1030 "version": "v1" | 1030 "version": "v1" |
| 1031 } | 1031 } |
| OLD | NEW |