Resource: App
The apps resource provides a list of the apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details.
Some resource methods (such as apps.get
) require an appId
. Use the apps.list
method to retrieve the ID for an installed application.
JSON representation |
---|
{ "name": string, "objectType": string, "supportsCreate": boolean, "productUrl": string, "primaryMimeTypes": [ string ], "secondaryMimeTypes": [ string ], "primaryFileExtensions": [ string ], "secondaryFileExtensions": [ string ], "id": string, "supportsImport": boolean, "installed": boolean, "authorized": boolean, "icons": [ { "size": integer, "category": string, "iconUrl": string } ], "useByDefault": boolean, "kind": string, "shortDescription": string, "longDescription": string, "supportsMultiOpen": boolean, "productId": string, "openUrlTemplate": string, "createUrl": string, "createInFolderTemplate": string, "supportsOfflineCreate": boolean, "hasDriveWideScope": boolean } |
Fields | |
---|---|
name |
The name of the app. |
objectType |
The type of object this app creates (e.g. Chart). If empty, the app name should be used instead. |
supportsCreate |
Whether this app supports creating new objects. |
productUrl |
A link to the product listing for this app. |
primaryMimeTypes[] |
The list of primary mime types. |
secondaryMimeTypes[] |
The list of secondary mime types. |
primaryFileExtensions[] |
The list of primary file extensions. |
secondaryFileExtensions[] |
The list of secondary file extensions. |
id |
The ID of the app. |
supportsImport |
Whether this app supports importing from Docs Editors. |
installed |
Whether the app is installed. |
authorized |
Whether the app is authorized to access data on the user's Drive. |
icons[] |
The various icons for the app. |
icons[].size |
Size of the icon. Represented as the maximum of the width and height. |
icons[].category |
Category of the icon. Allowed values are:
|
icons[].iconUrl |
URL for the icon. |
useByDefault |
Whether the app is selected as the default handler for the types it supports. |
kind |
This is always |
shortDescription |
A short description of the app. |
longDescription |
A long description of the app. |
supportsMultiOpen |
Whether this app supports opening more than one file. |
productId |
The ID of the product listing for this app. |
openUrlTemplate |
The template url for opening files with this app. The template will contain |
createUrl |
The url to create a new file with this app. |
createInFolderTemplate |
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. |
supportsOfflineCreate |
Whether this app supports creating new files when offline. |
hasDriveWideScope |
Whether the app has drive-wide scope. An app with drive-wide scope can access all files in the user's drive. |
Methods |
|
---|---|
|
Gets a specific app. |
|
Lists a user's installed apps. |