OLD | NEW |
1 { | 1 { |
2 "auth": { | 2 "auth": { |
3 "oauth2": { | 3 "oauth2": { |
4 "scopes": { | 4 "scopes": { |
5 "https://www.googleapis.com/auth/glass.location": { | 5 "https://www.googleapis.com/auth/glass.location": { |
6 "description": "View your location" | 6 "description": "View your location" |
7 }, | 7 }, |
8 "https://www.googleapis.com/auth/glass.timeline": { | 8 "https://www.googleapis.com/auth/glass.timeline": { |
9 "description": "View and manage your Glass timeline" | 9 "description": "View and manage your Glass timeline" |
10 } | 10 } |
11 } | 11 } |
12 } | 12 } |
13 }, | 13 }, |
14 "basePath": "/mirror/v1/", | 14 "basePath": "/mirror/v1/", |
15 "baseUrl": "https://www.googleapis.com/mirror/v1/", | 15 "baseUrl": "https://www.googleapis.com/mirror/v1/", |
16 "batchPath": "batch", | 16 "batchPath": "batch", |
17 "description": "API for interacting with Glass users via the timeline.", | 17 "description": "API for interacting with Glass users via the timeline.", |
18 "discoveryVersion": "v1", | 18 "discoveryVersion": "v1", |
19 "documentationLink": "https://developers.google.com/glass", | 19 "documentationLink": "https://developers.google.com/glass", |
20 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/mHzQ-YLzhCvTUBkktYBjTjOWqUY\"", | 20 "etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/x73cpqpFVl1e3xcBp5OSFfItgv0\"", |
21 "icons": { | 21 "icons": { |
22 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 22 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
23 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 23 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
24 }, | 24 }, |
25 "id": "mirror:v1", | 25 "id": "mirror:v1", |
26 "kind": "discovery#restDescription", | 26 "kind": "discovery#restDescription", |
27 "labels": [ | 27 "labels": [ |
28 "limited_availability" | 28 "limited_availability" |
29 ], | 29 ], |
30 "name": "mirror", | 30 "name": "mirror", |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 }, | 728 }, |
729 "scopes": [ | 729 "scopes": [ |
730 "https://www.googleapis.com/auth/glass.timeline" | 730 "https://www.googleapis.com/auth/glass.timeline" |
731 ] | 731 ] |
732 } | 732 } |
733 } | 733 } |
734 } | 734 } |
735 } | 735 } |
736 } | 736 } |
737 }, | 737 }, |
738 "revision": "20140908", | 738 "revision": "20140917", |
739 "rootUrl": "https://www.googleapis.com/", | 739 "rootUrl": "https://www.googleapis.com/", |
740 "schemas": { | 740 "schemas": { |
741 "Account": { | 741 "Account": { |
742 "description": "Represents an account passed into the Account Manage
r on Glass.", | 742 "description": "Represents an account passed into the Account Manage
r on Glass.", |
743 "id": "Account", | 743 "id": "Account", |
744 "properties": { | 744 "properties": { |
745 "authTokens": { | 745 "authTokens": { |
746 "items": { | 746 "items": { |
747 "$ref": "AuthToken" | 747 "$ref": "AuthToken" |
748 }, | 748 }, |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1007 "type": "object" | 1007 "type": "object" |
1008 }, | 1008 }, |
1009 "MenuItem": { | 1009 "MenuItem": { |
1010 "description": "A custom menu item that can be presented to the user
by a timeline item.", | 1010 "description": "A custom menu item that can be presented to the user
by a timeline item.", |
1011 "id": "MenuItem", | 1011 "id": "MenuItem", |
1012 "properties": { | 1012 "properties": { |
1013 "action": { | 1013 "action": { |
1014 "description": "Controls the behavior when the user picks th
e menu option. Allowed values are: \n- CUSTOM - Custom action set by the servic
e. When the user selects this menuItem, the API triggers a notification to your
callbackUrl with the userActions.type set to CUSTOM and the userActions.payload
set to the ID of this menu item. This is the default value. \n- Built-in actions
: \n- REPLY - Initiate a reply to the timeline item using the voice recording U
I. The creator attribute must be set in the timeline item for this menu to be av
ailable. \n- REPLY_ALL - Same behavior as REPLY. The original timeline item's re
cipients will be added to the reply item. \n- DELETE - Delete the timeline item.
\n- SHARE - Share the timeline item with the available contacts. \n- READ_ALOUD
- Read the timeline item's speakableText aloud; if this field is not set, read
the text field; if none of those fields are set, this menu item is ignored. \n-
GET_MEDIA_INPUT - Allow users to provide media payloads to Glassware from a menu
item (currently, only transcribed text from voice input is supported). Subscrib
e to notifications when users invoke this menu item to receive the timeline item
ID. Retrieve the media from the timeline item in the payload property. \n- VOIC
E_CALL - Initiate a phone call using the timeline item's creator.phoneNumber att
ribute as recipient. \n- NAVIGATE - Navigate to the timeline item's location. \n
- TOGGLE_PINNED - Toggle the isPinned state of the timeline item. \n- OPEN_URI -
Open the payload of the menu item in the browser. \n- PLAY_VIDEO - Open the pay
load of the menu item in the Glass video player. \n- SEND_MESSAGE - Initiate sen
ding a message to the timeline item's creator: \n- If the creator.phoneNumber i
s set and Glass is connected to an Android phone, the message is an SMS. \n- Oth
erwise, if the creator.email is set, the message is an email.", | 1014 "description": "Controls the behavior when the user picks th
e menu option. Allowed values are: \n- CUSTOM - Custom action set by the servic
e. When the user selects this menuItem, the API triggers a notification to your
callbackUrl with the userActions.type set to CUSTOM and the userActions.payload
set to the ID of this menu item. This is the default value. \n- Built-in actions
: \n- REPLY - Initiate a reply to the timeline item using the voice recording U
I. The creator attribute must be set in the timeline item for this menu to be av
ailable. \n- REPLY_ALL - Same behavior as REPLY. The original timeline item's re
cipients will be added to the reply item. \n- DELETE - Delete the timeline item.
\n- SHARE - Share the timeline item with the available contacts. \n- READ_ALOUD
- Read the timeline item's speakableText aloud; if this field is not set, read
the text field; if none of those fields are set, this menu item is ignored. \n-
GET_MEDIA_INPUT - Allow users to provide media payloads to Glassware from a menu
item (currently, only transcribed text from voice input is supported). Subscrib
e to notifications when users invoke this menu item to receive the timeline item
ID. Retrieve the media from the timeline item in the payload property. \n- VOIC
E_CALL - Initiate a phone call using the timeline item's creator.phoneNumber att
ribute as recipient. \n- NAVIGATE - Navigate to the timeline item's location. \n
- TOGGLE_PINNED - Toggle the isPinned state of the timeline item. \n- OPEN_URI -
Open the payload of the menu item in the browser. \n- PLAY_VIDEO - Open the pay
load of the menu item in the Glass video player. \n- SEND_MESSAGE - Initiate sen
ding a message to the timeline item's creator: \n- If the creator.phoneNumber i
s set and Glass is connected to an Android phone, the message is an SMS. \n- Oth
erwise, if the creator.email is set, the message is an email.", |
1015 "type": "string" | 1015 "type": "string" |
1016 }, | 1016 }, |
| 1017 "contextual_command": { |
| 1018 "description": "The ContextualMenus.Command associated with
this MenuItem (e.g. READ_ALOUD). The voice label for this command will be displa
yed in the voice menu and the touch label will be displayed in the touch menu. N
ote that the default menu value's display name will be overriden if you specify
this property. Values that do not correspond to a ContextualMenus.Command name w
ill be ignored.", |
| 1019 "type": "string" |
| 1020 }, |
1017 "id": { | 1021 "id": { |
1018 "description": "The ID for this menu item. This is generated
by the application and is treated as an opaque token.", | 1022 "description": "The ID for this menu item. This is generated
by the application and is treated as an opaque token.", |
1019 "type": "string" | 1023 "type": "string" |
1020 }, | 1024 }, |
1021 "payload": { | 1025 "payload": { |
1022 "description": "A generic payload whose meaning changes depe
nding on this MenuItem's action. \n- When the action is OPEN_URI, the payload i
s the URL of the website to view. \n- When the action is PLAY_VIDEO, the payload
is the streaming URL of the video \n- When the action is GET_MEDIA_INPUT, the p
ayload is the text transcription of a user's speech input", | 1026 "description": "A generic payload whose meaning changes depe
nding on this MenuItem's action. \n- When the action is OPEN_URI, the payload i
s the URL of the website to view. \n- When the action is PLAY_VIDEO, the payload
is the streaming URL of the video \n- When the action is GET_MEDIA_INPUT, the p
ayload is the text transcription of a user's speech input", |
1023 "type": "string" | 1027 "type": "string" |
1024 }, | 1028 }, |
1025 "removeWhenSelected": { | 1029 "removeWhenSelected": { |
1026 "description": "If set to true on a CUSTOM menu item, that i
tem will be removed from the menu after it is selected.", | 1030 "description": "If set to true on a CUSTOM menu item, that i
tem will be removed from the menu after it is selected.", |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 "type": "string" | 1381 "type": "string" |
1378 } | 1382 } |
1379 }, | 1383 }, |
1380 "type": "object" | 1384 "type": "object" |
1381 } | 1385 } |
1382 }, | 1386 }, |
1383 "servicePath": "mirror/v1/", | 1387 "servicePath": "mirror/v1/", |
1384 "title": "Google Mirror API", | 1388 "title": "Google Mirror API", |
1385 "version": "v1" | 1389 "version": "v1" |
1386 } | 1390 } |
OLD | NEW |