Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
HUAWEI HMS Core
Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.
Tracks changes to a file.
POST
https://drive.cloud.hicloud.com/drive/v1/files/{fileId}/subscribe
*Some parameters are mandatory.
| Parameter Name | Type | Description | |
| fileId | string | path | File ID. (Mandatory) |
| fields | string | query | Fields in the request, which are in the partial response format. |
| form | string | query | Media format. |
| prettyPrint | boolean | query | Indicates whether to return a response in a human-readable format. |
| quotaId | string | query | User identifier, consisting of 40 characters at maximum. It is used to restrict the number of API calls of an individual user. |
| callback | string | query | Callback function used in JSONP requests. |
| x-hw-trace-id | string | header | ID used for service tracing. |
| x-hw-app-id | string | header | App ID. |
| version | string | header | SDK version number. |
| x-hw-terminal | string | header | Device model. |
| x-hw-os | string | header | Device operating system. |
| unionID | string | header | Open user ID. |
| User-Agent | string | header | App version number or ID. |
In the request body, provide data with the following structure:
| Parameter Name | Type | Description |
| id | string | A unique string that identifies this channel.(Mandatory) |
| userToken | string | A string that is sent to the target address along with each notification that is sent on this channel.(Mandatory) |
| type | string | Type of delivery mechanism that is used for this channel. Value: web_hook.(Mandatory) |
| url | string | The address where notifications are delivered for this channel.(Mandatory) |
| expirationTime | integer | Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. File resources will expire within one day, while change resources will expire within one week. |
If successful, this method returns a response body with the following structure:
- {
- "category": "api#channel",
- "id": "string",
- "resourceId": "string",
- "resourceUri": "string",
- "userToken": "string",
- "expirationTime": 0,
- "type": "string",
- "url": "string"
- }
| Parameter Name | Type | Description |
| category | string | Resource type. The value is always api#channel. |
| id | string | ID. |
| resourceId | string | Resource ID, which identifies the resource being tracked on this channel. |
| resourceUri | string | A version-specific identifier for the tracked resource. |
| userToken | string | A string that is sent to the target address along with each notification that is sent on this channel. |
| expirationTime | integer | Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. File resources will expire within one day, while change resources will expire within one week. |
| type | string | Type of delivery mechanism that is used for this channel. |
| url | string | Callback address. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.