Skip to main content

apps

Creates, updates, deletes, gets or lists an apps resource.

Overview

Nameapps
TypeResource
Idgoogleworkspace.drivev2.apps

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the app.
namestringThe name of the app.
authorizedbooleanWhether the app is authorized to access data on the user's Drive.
createInFolderTemplatestringThe 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.
createUrlstringThe url to create a new file with this app.
hasDriveWideScopebooleanWhether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive.
iconsarrayThe various icons for the app.
installedbooleanWhether the app is installed.
kindstringThis is always drive#app. (default: drive#app)
longDescriptionstringA long description of the app.
objectTypestringThe type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
openUrlTemplatestringThe 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.
primaryFileExtensionsarrayThe list of primary file extensions.
primaryMimeTypesarrayThe list of primary mime types.
productIdstringThe ID of the product listing for this app.
productUrlstringA link to the product listing for this app.
secondaryFileExtensionsarrayThe list of secondary file extensions.
secondaryMimeTypesarrayThe list of secondary mime types.
shortDescriptionstringA short description of the app.
supportsCreatebooleanWhether this app supports creating new objects.
supportsImportbooleanWhether this app supports importing from Docs Editors.
supportsMultiOpenbooleanWhether this app supports opening more than one file.
supportsOfflineCreatebooleanWhether this app supports creating new files when offline.
useByDefaultbooleanWhether the app is selected as the default handler for the types it supports.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectappIdGets a specific app.
listselectappFilterExtensions, appFilterMimeTypes, languageCodeLists 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.

NameDatatypeDescription
appIdstring
appFilterExtensionsstring
appFilterMimeTypesstring
languageCodestring

SELECT examples

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
;