provider changes POST
/changes/watch @utdk/google/drive
/changes/watch changes.watch
Subscribes to changes for a user.
- $.xgafv query
- V1 error format.
- enum: 1, 2
- access_token query
- OAuth access token.
- string
- alt query
- Data format for response.
- enum: json, media, proto
- callback query
- JSONP
- string
- fields query
- Selector specifying which fields to include in a partial response.
- string
- key query
- API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
- string
- oauth_token query
- OAuth 2.0 token for the current user.
- string
- prettyPrint query
- Returns response with indentations and line breaks.
- boolean
- quotaUser query
- Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
- string
- upload_protocol query
- Upload protocol for media (e.g. "raw", "multipart").
- string
- uploadType query
- Legacy upload protocol for media (e.g. "media", "multipart").
- string
- pageToken query required
- The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.
- string
- driveId query
- The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.
- string
- includeCorpusRemovals query
- Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
- boolean
- includeItemsFromAllDrives query
- Whether both My Drive and shared drive items should be included in results.
- boolean
- includeLabels query
- A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.
- string
- includePermissionsForView query
- Specifies which additional view's permissions to include in the response. Only 'published' is supported.
- string
- includeRemoved query
- Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
- boolean
- includeTeamDriveItems query
- Deprecated: Use `includeItemsFromAllDrives` instead.
- boolean
- pageSize query
- The maximum number of changes to return per page.
- integer
- restrictToMyDrive query
- Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
- boolean
- spaces query
- A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.
- string
- supportsAllDrives query
- Whether the requesting application supports both My Drives and shared drives.
- boolean
- supportsTeamDrives query
- Deprecated: Use `supportsAllDrives` instead.
- boolean
- teamDriveId query
- Deprecated: Use `driveId` instead.
- string
Try it
Authentication
Configure credentials for Google Drive API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import google_drive from '@utdk/google/drive';
await google_drive.changesWatch({
"kind": "api#channel"
})