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 11 matching lines...) Expand all Loading... |
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 "documentationLink": "https://developers.google.com/fit/rest/", | 31 "documentationLink": "https://developers.google.com/fit/rest/", |
32 "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/ON1-o8QnfSjPgDpi2fa5Rxma0qA\"", | 32 "etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/HDPUkwKxWfeChsVb7MggQS7MZkw\"", |
33 "icons": { | 33 "icons": { |
34 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 34 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
35 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 35 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
36 }, | 36 }, |
37 "id": "fitness:v1", | 37 "id": "fitness:v1", |
38 "kind": "discovery#restDescription", | 38 "kind": "discovery#restDescription", |
39 "name": "fitness", | 39 "name": "fitness", |
40 "ownerDomain": "google.com", | 40 "ownerDomain": "google.com", |
41 "ownerName": "Google", | 41 "ownerName": "Google", |
42 "parameters": { | 42 "parameters": { |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 "https://www.googleapis.com/auth/fitness
.location.write" | 442 "https://www.googleapis.com/auth/fitness
.location.write" |
443 ] | 443 ] |
444 } | 444 } |
445 } | 445 } |
446 } | 446 } |
447 } | 447 } |
448 }, | 448 }, |
449 "dataset": { | 449 "dataset": { |
450 "methods": { | 450 "methods": { |
451 "aggregate": { | 451 "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.", |
452 "httpMethod": "POST", | 453 "httpMethod": "POST", |
453 "id": "fitness.users.dataset.aggregate", | 454 "id": "fitness.users.dataset.aggregate", |
454 "parameterOrder": [ | 455 "parameterOrder": [ |
455 "userId" | 456 "userId" |
456 ], | 457 ], |
457 "parameters": { | 458 "parameters": { |
458 "userId": { | 459 "userId": { |
| 460 "description": "Aggregate data for the perso
n identified. Use me to indicate the authenticated user. Only me is supported at
this time.", |
459 "location": "path", | 461 "location": "path", |
460 "required": true, | 462 "required": true, |
461 "type": "string" | 463 "type": "string" |
462 } | 464 } |
463 }, | 465 }, |
464 "path": "{userId}/dataset:aggregate", | 466 "path": "{userId}/dataset:aggregate", |
465 "request": { | 467 "request": { |
466 "$ref": "AggregateRequest" | 468 "$ref": "AggregateRequest" |
467 }, | 469 }, |
468 "response": { | 470 "response": { |
469 "$ref": "AggregateResponse" | 471 "$ref": "AggregateResponse" |
470 } | 472 }, |
| 473 "scopes": [ |
| 474 "https://www.googleapis.com/auth/fitness.activit
y.write", |
| 475 "https://www.googleapis.com/auth/fitness.body.wr
ite", |
| 476 "https://www.googleapis.com/auth/fitness.locatio
n.write" |
| 477 ] |
471 } | 478 } |
472 } | 479 } |
473 }, | 480 }, |
474 "sessions": { | 481 "sessions": { |
475 "methods": { | 482 "methods": { |
476 "delete": { | 483 "delete": { |
477 "description": "Deletes a session specified by the g
iven session ID.", | 484 "description": "Deletes a session specified by the g
iven session ID.", |
478 "httpMethod": "DELETE", | 485 "httpMethod": "DELETE", |
479 "id": "fitness.users.sessions.delete", | 486 "id": "fitness.users.sessions.delete", |
480 "parameterOrder": [ | 487 "parameterOrder": [ |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 }, | 598 }, |
592 "scopes": [ | 599 "scopes": [ |
593 "https://www.googleapis.com/auth/fitness.activit
y.write" | 600 "https://www.googleapis.com/auth/fitness.activit
y.write" |
594 ] | 601 ] |
595 } | 602 } |
596 } | 603 } |
597 } | 604 } |
598 } | 605 } |
599 } | 606 } |
600 }, | 607 }, |
601 "revision": "20150527", | 608 "revision": "20150720", |
602 "rootUrl": "https://www.googleapis.com/", | 609 "rootUrl": "https://www.googleapis.com/", |
603 "schemas": { | 610 "schemas": { |
604 "AggregateBucket": { | 611 "AggregateBucket": { |
605 "id": "AggregateBucket", | 612 "id": "AggregateBucket", |
606 "properties": { | 613 "properties": { |
607 "activity": { | 614 "activity": { |
608 "description": "available for Bucket.Type.ACTIVITY_TYPE, Buc
ket.Type.ACTIVITY_SEGMENT", | 615 "description": "Available for Bucket.Type.ACTIVITY_TYPE, Buc
ket.Type.ACTIVITY_SEGMENT", |
609 "format": "int32", | 616 "format": "int32", |
610 "type": "integer" | 617 "type": "integer" |
611 }, | 618 }, |
612 "dataset": { | 619 "dataset": { |
613 "description": "There will be one dataset per datatype/datas
ource", | 620 "description": "There will be one dataset per AggregateBy in
the request.", |
614 "items": { | 621 "items": { |
615 "$ref": "Dataset" | 622 "$ref": "Dataset" |
616 }, | 623 }, |
617 "type": "array" | 624 "type": "array" |
618 }, | 625 }, |
619 "endTimeMillis": { | 626 "endTimeMillis": { |
| 627 "description": "The end time for the aggregated data, in mil
liseconds since epoch, inclusive.", |
620 "format": "int64", | 628 "format": "int64", |
621 "type": "string" | 629 "type": "string" |
622 }, | 630 }, |
623 "session": { | 631 "session": { |
624 "$ref": "Session", | 632 "$ref": "Session", |
625 "description": "available for Bucket.Type.SESSION" | 633 "description": "Available for Bucket.Type.SESSION" |
626 }, | 634 }, |
627 "startTimeMillis": { | 635 "startTimeMillis": { |
| 636 "description": "The start time for the aggregated data, in m
illiseconds since epoch, inclusive.", |
628 "format": "int64", | 637 "format": "int64", |
629 "type": "string" | 638 "type": "string" |
630 }, | 639 }, |
631 "type": { | 640 "type": { |
632 "description": "The type of a bucket signifies how the data
aggregation is performed in the bucket.", | 641 "description": "The type of a bucket signifies how the data
aggregation is performed in the bucket.", |
633 "enum": [ | 642 "enum": [ |
634 "activitySegment", | 643 "activitySegment", |
635 "activityType", | 644 "activityType", |
636 "session", | 645 "session", |
637 "time", | 646 "time", |
638 "unknown" | 647 "unknown" |
639 ], | 648 ], |
640 "enumDescriptions": [ | 649 "enumDescriptions": [ |
641 "", | 650 "", |
642 "", | 651 "", |
643 "", | 652 "", |
644 "", | 653 "", |
645 "" | 654 "" |
646 ], | 655 ], |
647 "type": "string" | 656 "type": "string" |
648 } | 657 } |
649 }, | 658 }, |
650 "type": "object" | 659 "type": "object" |
651 }, | 660 }, |
652 "AggregateBy": { | 661 "AggregateBy": { |
| 662 "description": "The specification of which data to aggregate.", |
653 "id": "AggregateBy", | 663 "id": "AggregateBy", |
654 "properties": { | 664 "properties": { |
655 "dataSourceId": { | 665 "dataSourceId": { |
| 666 "description": "A data source ID to aggregate. Mutually excl
usive of dataTypeName. Only data from the specified data source ID will be inclu
ded in the aggregation. The dataset in the response will have the same data sour
ce ID.", |
656 "type": "string" | 667 "type": "string" |
657 }, | 668 }, |
658 "dataTypeName": { | 669 "dataTypeName": { |
659 "description": "by dataype or by datasource", | 670 "description": "The data type to aggregate. All data sources
providing this data type will contribute data to the aggregation. The response
will contain a single dataset for this data type name. The dataset will have a d
ata source ID of derived:com.google.:com.google.android.gms:aggregated", |
660 "type": "string" | |
661 }, | |
662 "outputDataSourceId": { | |
663 "type": "string" | |
664 }, | |
665 "outputDataTypeName": { | |
666 "type": "string" | 671 "type": "string" |
667 } | 672 } |
668 }, | 673 }, |
669 "type": "object" | 674 "type": "object" |
670 }, | 675 }, |
671 "AggregateRequest": { | 676 "AggregateRequest": { |
672 "id": "AggregateRequest", | 677 "id": "AggregateRequest", |
673 "properties": { | 678 "properties": { |
674 "aggregateBy": { | 679 "aggregateBy": { |
| 680 "annotations": { |
| 681 "required": [ |
| 682 "fitness.users.dataset.aggregate" |
| 683 ] |
| 684 }, |
| 685 "description": "The specification of data to be aggregated.
At least one aggregateBy spec must be provided. All data that is specified will
be aggregated using the same bucketing criteria. There will be one dataset in th
e response for every aggregateBy spec.", |
675 "items": { | 686 "items": { |
676 "$ref": "AggregateBy" | 687 "$ref": "AggregateBy" |
677 }, | 688 }, |
678 "type": "array" | 689 "type": "array" |
679 }, | 690 }, |
680 "bucketByActivitySegment": { | 691 "bucketByActivitySegment": { |
681 "$ref": "BucketByActivity" | 692 "$ref": "BucketByActivity", |
| 693 "description": "Specifies that data be aggregated each activ
ity segment recored for a user. Similar to bucketByActivitySegment, but bucketin
g is done for each activity segment rather than all segments of the same type. M
utually exclusive of other bucketing specifications." |
682 }, | 694 }, |
683 "bucketByActivityType": { | 695 "bucketByActivityType": { |
684 "$ref": "BucketByActivity" | 696 "$ref": "BucketByActivity", |
| 697 "description": "Specifies that data be aggregated by the typ
e of activity being performed when the data was recorded. All data that was reco
rded during a certain activity type (for the given time range) will be aggregate
d into the same bucket. Data that was recorded while the user was not active wil
l not be included in the response. Mutually exclusive of other bucketing specifi
cations." |
685 }, | 698 }, |
686 "bucketBySession": { | 699 "bucketBySession": { |
687 "$ref": "BucketBySession" | 700 "$ref": "BucketBySession", |
| 701 "description": "Specifies that data be aggregated by user se
ssions. Data that does not fall within the time range of a session will not be i
ncluded in the response. Mutually exclusive of other bucketing specifications." |
688 }, | 702 }, |
689 "bucketByTime": { | 703 "bucketByTime": { |
690 "$ref": "BucketByTime", | 704 "$ref": "BucketByTime", |
691 "description": "apparently oneof is not supported by reduced
_nano_proto" | 705 "description": "Specifies that data be aggregated by a singl
e time interval. Mutually exclusive of other bucketing specifications." |
692 }, | 706 }, |
693 "endTimeMillis": { | 707 "endTimeMillis": { |
| 708 "annotations": { |
| 709 "required": [ |
| 710 "fitness.users.dataset.aggregate" |
| 711 ] |
| 712 }, |
| 713 "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.", |
694 "format": "int64", | 714 "format": "int64", |
695 "type": "string" | 715 "type": "string" |
696 }, | 716 }, |
697 "startTimeMillis": { | 717 "startTimeMillis": { |
698 "description": "required time range", | 718 "annotations": { |
| 719 "required": [ |
| 720 "fitness.users.dataset.aggregate" |
| 721 ] |
| 722 }, |
| 723 "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.", |
699 "format": "int64", | 724 "format": "int64", |
700 "type": "string" | 725 "type": "string" |
701 } | 726 } |
702 }, | 727 }, |
703 "type": "object" | 728 "type": "object" |
704 }, | 729 }, |
705 "AggregateResponse": { | 730 "AggregateResponse": { |
706 "id": "AggregateResponse", | 731 "id": "AggregateResponse", |
707 "properties": { | 732 "properties": { |
708 "bucket": { | 733 "bucket": { |
| 734 "description": "A list of buckets containing the aggregated
data.", |
709 "items": { | 735 "items": { |
710 "$ref": "AggregateBucket" | 736 "$ref": "AggregateBucket" |
711 }, | 737 }, |
712 "type": "array" | 738 "type": "array" |
713 } | 739 } |
714 }, | 740 }, |
715 "type": "object" | 741 "type": "object" |
716 }, | 742 }, |
717 "Application": { | 743 "Application": { |
718 "description": "See: google3/java/com/google/android/apps/heart/plat
form/api/Application.java", | 744 "description": "See: google3/java/com/google/android/apps/heart/plat
form/api/Application.java", |
(...skipping 22 matching lines...) Expand all Loading... |
741 "description": "Version of the application. You should updat
e this field whenever the application changes in a way that affects the computat
ion of the data.", | 767 "description": "Version of the application. You should updat
e this field whenever the application changes in a way that affects the computat
ion of the data.", |
742 "type": "string" | 768 "type": "string" |
743 } | 769 } |
744 }, | 770 }, |
745 "type": "object" | 771 "type": "object" |
746 }, | 772 }, |
747 "BucketByActivity": { | 773 "BucketByActivity": { |
748 "id": "BucketByActivity", | 774 "id": "BucketByActivity", |
749 "properties": { | 775 "properties": { |
750 "activityDataSourceId": { | 776 "activityDataSourceId": { |
751 "description": "default activity stream will be used if not
specified", | 777 "description": "The default activity stream will be used if
a specific activityDataSourceId is not specified.", |
752 "type": "string" | 778 "type": "string" |
753 }, | 779 }, |
754 "minDurationMillis": { | 780 "minDurationMillis": { |
755 "description": "Only activity segments of duration longer th
an this is used", | 781 "description": "Specifies that only activity segments of dur
ation longer than minDurationMillis are considered and used as a container for a
ggregated data.", |
756 "format": "int64", | 782 "format": "int64", |
757 "type": "string" | 783 "type": "string" |
758 } | 784 } |
759 }, | 785 }, |
760 "type": "object" | 786 "type": "object" |
761 }, | 787 }, |
762 "BucketBySession": { | 788 "BucketBySession": { |
763 "id": "BucketBySession", | 789 "id": "BucketBySession", |
764 "properties": { | 790 "properties": { |
765 "minDurationMillis": { | 791 "minDurationMillis": { |
766 "description": "Only sessions of duration longer than this i
s used", | 792 "description": "Specifies that only sessions of duration lon
ger than minDurationMillis are considered and used as a container for aggregated
data.", |
767 "format": "int64", | 793 "format": "int64", |
768 "type": "string" | 794 "type": "string" |
769 } | 795 } |
770 }, | 796 }, |
771 "type": "object" | 797 "type": "object" |
772 }, | 798 }, |
773 "BucketByTime": { | 799 "BucketByTime": { |
774 "id": "BucketByTime", | 800 "id": "BucketByTime", |
775 "properties": { | 801 "properties": { |
776 "durationMillis": { | 802 "durationMillis": { |
| 803 "description": "Specifies that result buckets aggregate data
by exactly durationMillis time frames. Time frames that contain no data will be
included in the response with an empty dataset.", |
777 "format": "int64", | 804 "format": "int64", |
778 "type": "string" | 805 "type": "string" |
779 } | 806 } |
780 }, | 807 }, |
781 "type": "object" | 808 "type": "object" |
782 }, | 809 }, |
783 "DataPoint": { | 810 "DataPoint": { |
784 "description": "Represents a single data point, generated by a parti
cular data source. A data point holds a value for each field, an end timestamp a
nd an optional start time. The exact semantics of each of these attributes are s
pecified in the documentation for the particular data type.\n\nA data point can
represent an instantaneous measurement, reading or input observation, as well as
averages or aggregates over a time interval. Check the data type documentation
to determine which is the case for a particular data type.\n\nData points always
contain one value for each field of the data type.", | 811 "description": "Represents a single data point, generated by a parti
cular data source. A data point holds a value for each field, an end timestamp a
nd an optional start time. The exact semantics of each of these attributes are s
pecified in the documentation for the particular data type.\n\nA data point can
represent an instantaneous measurement, reading or input observation, as well as
averages or aggregates over a time interval. Check the data type documentation
to determine which is the case for a particular data type.\n\nData points always
contain one value for each field of the data type.", |
785 "id": "DataPoint", | 812 "id": "DataPoint", |
786 "properties": { | 813 "properties": { |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 "session": { | 1177 "session": { |
1151 "description": "Sessions with an end time that is between st
artTime and endTime of the request.", | 1178 "description": "Sessions with an end time that is between st
artTime and endTime of the request.", |
1152 "items": { | 1179 "items": { |
1153 "$ref": "Session" | 1180 "$ref": "Session" |
1154 }, | 1181 }, |
1155 "type": "array" | 1182 "type": "array" |
1156 } | 1183 } |
1157 }, | 1184 }, |
1158 "type": "object" | 1185 "type": "object" |
1159 }, | 1186 }, |
| 1187 "MapValue": { |
| 1188 "description": "Holder object for the value of an entry in a map fie
ld of a data point.\n\nA map value supports a subset of the formats that the reg
ular Value supports.", |
| 1189 "id": "MapValue", |
| 1190 "properties": { |
| 1191 "fpVal": { |
| 1192 "description": "Floating point value.", |
| 1193 "format": "double", |
| 1194 "type": "number" |
| 1195 } |
| 1196 }, |
| 1197 "type": "object" |
| 1198 }, |
1160 "Session": { | 1199 "Session": { |
1161 "description": "Sessions contain metadata, such as a user-friendly n
ame and time interval information.", | 1200 "description": "Sessions contain metadata, such as a user-friendly n
ame and time interval information.", |
1162 "id": "Session", | 1201 "id": "Session", |
1163 "properties": { | 1202 "properties": { |
1164 "activeTimeMillis": { | 1203 "activeTimeMillis": { |
1165 "description": "Session active time. While start_time_millis
and end_time_millis define the full session time, the active time can be shorte
r and specified by active_time_millis. If the inactive time during the session i
s known, it should also be inserted via a com.google.activity.segment data point
with a STILL activity value", | 1204 "description": "Session active time. While start_time_millis
and end_time_millis define the full session time, the active time can be shorte
r and specified by active_time_millis. If the inactive time during the session i
s known, it should also be inserted via a com.google.activity.segment data point
with a STILL activity value", |
1166 "format": "int64", | 1205 "format": "int64", |
1167 "type": "string" | 1206 "type": "string" |
1168 }, | 1207 }, |
1169 "activityType": { | 1208 "activityType": { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1233 "type": "string" | 1272 "type": "string" |
1234 } | 1273 } |
1235 }, | 1274 }, |
1236 "type": "object" | 1275 "type": "object" |
1237 }, | 1276 }, |
1238 "Value": { | 1277 "Value": { |
1239 "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.", | 1278 "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.", |
1240 "id": "Value", | 1279 "id": "Value", |
1241 "properties": { | 1280 "properties": { |
1242 "fpVal": { | 1281 "fpVal": { |
1243 "description": "Floating point value. When this is set, intV
al must not be set.", | 1282 "description": "Floating point value. When this is set, othe
r values must not be set.", |
1244 "format": "double", | 1283 "format": "double", |
1245 "type": "number" | 1284 "type": "number" |
1246 }, | 1285 }, |
1247 "intVal": { | 1286 "intVal": { |
1248 "description": "Integer value. When this is set, fpVal must
not be set.", | 1287 "description": "Integer value. When this is set, other value
s must not be set.", |
1249 "format": "int32", | 1288 "format": "int32", |
1250 "type": "integer" | 1289 "type": "integer" |
| 1290 }, |
| 1291 "mapVal": { |
| 1292 "description": "Map value. The valid key space and units for
the corresponding value of each entry should be documented as part of the data
type definition. Keys should be kept small whenever possible. Data streams with
large keys and high data frequency may be down sampled.", |
| 1293 "items": { |
| 1294 "$ref": "ValueMapValEntry" |
| 1295 }, |
| 1296 "type": "array" |
| 1297 }, |
| 1298 "stringVal": { |
| 1299 "description": "String value. When this is set, other values
must not be set. Strings should be kept small whenever possible. Data streams w
ith large string values and high data frequency may be down sampled.", |
| 1300 "type": "string" |
1251 } | 1301 } |
1252 }, | 1302 }, |
1253 "type": "object" | 1303 "type": "object" |
| 1304 }, |
| 1305 "ValueMapValEntry": { |
| 1306 "id": "ValueMapValEntry", |
| 1307 "properties": { |
| 1308 "key": { |
| 1309 "type": "string" |
| 1310 }, |
| 1311 "value": { |
| 1312 "$ref": "MapValue" |
| 1313 } |
| 1314 }, |
| 1315 "type": "object" |
1254 } | 1316 } |
1255 }, | 1317 }, |
1256 "servicePath": "fitness/v1/users/", | 1318 "servicePath": "fitness/v1/users/", |
1257 "title": "Fitness", | 1319 "title": "Fitness", |
1258 "version": "v1" | 1320 "version": "v1" |
1259 } | 1321 } |
OLD | NEW |