apps
Creates, updates, deletes, gets or lists an apps
resource.
Overview
Name | apps |
Type | Resource |
Id | googleworkspace.drivev2.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 new file with this app in a given folder. The template will contain {folderId} to be replaced by the folder to create the new file in. |
createUrl | string | The url to create a new 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 | This is always drive#app . (default: drive#app) |
longDescription | string | A long description of the app. |
objectType | string | The type of object this app creates (e.g. Chart). If empty, the app name should be used instead. |
openUrlTemplate | string | The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids. 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 new objects. |
supportsImport | boolean | Whether this app supports importing from Docs Editors. |
supportsMultiOpen | boolean | Whether this app supports opening more than one file. |
supportsOfflineCreate | boolean | Whether this app supports creating new files when offline. |
useByDefault | boolean | Whether the app is selected as the default handler for the types it supports. |
Name | Datatype | Description |
---|---|---|
defaultAppIds | array | List of app IDs that the user has specified to use by default. The list is in reverse-priority order (lowest to highest). |
etag | string | The ETag of the list. |
items | array | The list of apps. |
kind | string | This is always 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. | |
list | select | appFilterExtensions , appFilterMimeTypes , languageCode | Lists a user's installed apps. |
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.
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.drivev2.apps
WHERE appId = '{{ appId }}' -- required
;
Lists a user's installed apps.
SELECT
defaultAppIds,
etag,
items,
kind,
selfLink
FROM googleworkspace.drivev2.apps
WHERE appFilterExtensions = '{{ appFilterExtensions }}'
AND appFilterMimeTypes = '{{ appFilterMimeTypes }}'
AND languageCode = '{{ languageCode }}'
;