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.

changesWatch
POST/changes/watch
Subscribes to changes for a user.

V1 error format.

OAuth access token.

Data format for response.

JSONP

Selector specifying which fields to include in a partial response.

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.

OAuth 2.0 token for the current user.

Returns response with indentations and line breaks.

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.

Upload protocol for media (e.g. "raw", "multipart").

Legacy upload protocol for media (e.g. "media", "multipart").

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.

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.

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.

Whether both My Drive and shared drive items should be included in results.

A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.

Specifies which additional view's permissions to include in the response. Only 'published' is supported.

Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.

Deprecated: Use `includeItemsFromAllDrives` instead.

The maximum number of changes to return per page.

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.

A comma-separated list of spaces to query within the corpora. Supported values are 'drive' and 'appDataFolder'.

Whether the requesting application supports both My Drives and shared drives.

Deprecated: Use `supportsAllDrives` instead.

Deprecated: Use `driveId` instead.

Input

The address where notifications are delivered for this channel.

Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.

A UUID or similar unique string that identifies this channel.

Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`.

Additional parameters controlling delivery channel behavior. Optional.

A Boolean value to indicate whether payload is wanted. Optional.

An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.

A version-specific identifier for the watched resource.

An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.

The type of delivery mechanism used for this channel. Valid values are "web_hook" or "webhook".

Enter a gateway URL above to enable sending.

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"
})