SubscribeToFileChanges
Sets up a notification channel to start watching for changes to a single File resource.
Input
Name | Type | Description |
FileId | String | Required. The file id to subscribe changes to. |
SupportsAllDrives | Boolean | Whether the requesting application supports both My Drives and shared drives.
The default value is false. |
Id | String | A required property string that uniquely identifies this new notification channel within your project. |
Address | String | A required property string set to the URL that listens and responds to notifications for this notification channel. |
ChannelToken | String | An optional token property that specifies an arbitrary string value to use as a channel token. |
Expiration | String | An optional property string set to a Unix timestamp (in ms) of the date and time when you want the Drive API to stop sending messages for this notification channel. |
ResourceId | String | An optional opaque ID that identifies the resource being watched on this channel. |
ResourceURI | String | An optional version-specific identifier for the watched resource. |
Payload | Boolean | An optional boolean value to indicate whether payload is wanted. |
AdditionalParameters | Object | Optional. A json object used for specifying additional parameters that controll delivery channel behavior. Example : { |
Result Set Columns
Name | Type | Description |
Kind | String | The id for the file which was uploaded or updated. |
Id | String | ID you specified for this channel. |
ResourceId | String | ID of the watched resource. |
ResourceUri | String | Version-specific ID of the watched resource. |
Token | String | Present only if one was provided. |
Expiration | String | Actual expiration time as Unix timestamp (in ms), if applicable. |