apps
Creates, updates, deletes, gets or lists an apps
resource.
Overview
Name | apps |
Type | Resource |
Id | googleworkspace.drivev3.apps |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Name | Datatype | Description |
---|---|---|
id | string | The ID of the app. |
name | string | The name of the app. |
authorized | boolean | Whether the app is authorized to access data on the user's Drive. |
createInFolderTemplate | string | The template URL to create a file with this app in a given folder. The template contains the {folderId} to be replaced by the folder ID house the new file. |
createUrl | string | The URL to create a file with this app. |
hasDriveWideScope | boolean | Whether the app has Drive-wide scope. An app with Drive-wide scope can access all files in the user's Drive. |
icons | array | The various icons for the app. |
installed | boolean | Whether the app is installed. |
kind | string | Output only. Identifies what kind of resource this is. Value: the fixed string "drive#app". (default: drive#app) |
longDescription | string | A long description of the app. |
objectType | string | The type of object this app creates such as a Chart. If empty, the app name should be used instead. |
openUrlTemplate | string | The template URL for opening files with this app. The template contains {ids} or {exportIds} to be replaced by the actual file IDs. For more information, see Open Files for the full documentation. |
primaryFileExtensions | array | The list of primary file extensions. |
primaryMimeTypes | array | The list of primary MIME types. |
productId | string | The ID of the product listing for this app. |
productUrl | string | A link to the product listing for this app. |
secondaryFileExtensions | array | The list of secondary file extensions. |
secondaryMimeTypes | array | The list of secondary MIME types. |
shortDescription | string | A short description of the app. |
supportsCreate | boolean | Whether this app supports creating objects. |
supportsImport | boolean | Whether this app supports importing from Google Docs. |
supportsMultiOpen | boolean | Whether this app supports opening more than one file. |
supportsOfflineCreate | boolean | Whether this app supports creating files when offline. |
useByDefault | boolean | Whether the app is selected as the default handler for the types it supports. |
Name | Datatype | Description |
---|---|---|
defaultAppIds | array | The list of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest). |
items | array | The list of apps. |
kind | string | Output only. Identifies what kind of resource this is. Value: the fixed string "drive#appList". (default: drive#appList) |
selfLink | string | A link back to this list. |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | appId | Gets a specific app. For more information, see Return user info. | |
list | select | appFilterExtensions , appFilterMimeTypes , languageCode | Lists a user's installed apps. For more information, see Return user info. |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
appId | string | |
appFilterExtensions | string | |
appFilterMimeTypes | string | |
languageCode | string |
SELECT
examples
- get
- list
Gets a specific app. For more information, see Return user info.
SELECT
id,
name,
authorized,
createInFolderTemplate,
createUrl,
hasDriveWideScope,
icons,
installed,
kind,
longDescription,
objectType,
openUrlTemplate,
primaryFileExtensions,
primaryMimeTypes,
productId,
productUrl,
secondaryFileExtensions,
secondaryMimeTypes,
shortDescription,
supportsCreate,
supportsImport,
supportsMultiOpen,
supportsOfflineCreate,
useByDefault
FROM googleworkspace.drivev3.apps
WHERE appId = '{{ appId }}' -- required
;
Lists a user's installed apps. For more information, see Return user info.
SELECT
defaultAppIds,
items,
kind,
selfLink
FROM googleworkspace.drivev3.apps
WHERE appFilterExtensions = '{{ appFilterExtensions }}'
AND appFilterMimeTypes = '{{ appFilterMimeTypes }}'
AND languageCode = '{{ languageCode }}'
;