Subscribe to changes to a file
POST {{baseUrl}}/files/:fileId/watch?key={{key}}&oauth_token={{oauthToken}}
Subscribes to changes to a file.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
acknowledgeAbuse | string | Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. | |
includeLabels | string | A comma-separated list of IDs of labels to include in the labelInfo part of the response. | |
includePermissionsForView | string | Specifies which additional view's permissions to include in the response. Only 'published' is supported. | |
supportsAllDrives | string | Whether the requesting application supports both My Drives and shared drives. | |
supportsTeamDrives | string | Deprecated use supportsAllDrives instead. | |
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | 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_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
Request Body
{"address"=>"<string>", "expiration"=>"<int64>", "id"=>"<string>", "kind"=>"api#channel", "params"=>{"qui_9"=>"<string>", "adipisicing1"=>"<string>", "eu2"=>"<string>"}, "payload"=>"<boolean>", "resourceId"=>"<string>", "resourceUri"=>"<string>", "token"=>"<string>", "type"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"address":"\u003cstring\u003e","expiration":"\u003cint64\u003e","id":"\u003cstring\u003e","kind":"api#channel","params":{"qui_9":"\u003cstring\u003e","adipisicing1":"\u003cstring\u003e","eu2":"\u003cstring\u003e"},"payload":"\u003cboolean\u003e","resourceId":"\u003cstring\u003e","resourceUri":"\u003cstring\u003e","token":"\u003cstring\u003e","type":"\u003cstring\u003e"}