Liệu ứng dụng yêu cầu có hỗ trợ cả Bộ nhớ của tôi và bộ nhớ dùng chung hay không.
supportsTeamDrives (deprecated)
boolean
Không dùng nữa: Chuyển sang dùng supportsAllDrives.
acknowledgeAbuse
boolean
Người dùng có thừa nhận rủi ro về việc tải phần mềm độc hại đã biết hoặc các tệp vi phạm khác xuống hay không. Điều này chỉ áp dụng khi tham số alt được đặt thành media và người dùng là chủ sở hữu tệp hoặc người tổ chức bộ nhớ dùng chung chứa tệp này.
includePermissionsForView
string
Chỉ định các quyền bổ sung của chế độ xem cần đưa vào phản hồi. Chỉ "đã xuất bản" được hỗ trợ.
includeLabels
string
Danh sách mã nhận dạng nhãn được phân tách bằng dấu phẩy để đưa vào phần labelInfo của câu trả lời.
Một số phạm vi bị hạn chế và yêu cầu đánh giá bảo mật để ứng dụng của bạn có thể sử dụng các phạm vi đó. Để biết thêm thông tin, hãy xem Hướng dẫn uỷ quyền.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2024-09-03 UTC."],[[["Subscribes to changes to a file using the `POST https://www.googleapis.com/drive/v3/files/{fileId}/watch` endpoint, where `{fileId}` represents the ID of the file."],["Request body and successful response body both contain an instance of [Channel](/drive/api/reference/rest/v3/channels#Channel), enabling subscription to file changes."],["Accepts various query parameters like `supportsAllDrives`, `acknowledgeAbuse`, `includePermissionsForView`, and `includeLabels` to customize the subscription request."],["Requires authorization with one of the listed OAuth scopes, such as `https://www.googleapis.com/auth/drive` or `https://www.googleapis.com/auth/drive.file`, to access and subscribe to file changes."]]],["This outlines how to subscribe to file changes using a `POST` request to `https://www.googleapis.com/drive/v3/files/{fileId}/watch`. Key actions include setting the `fileId` in the path and using query parameters like `supportsAllDrives`, `acknowledgeAbuse`, `includePermissionsForView`, and `includeLabels`. The request and response bodies both use a `Channel` instance. The request requires specific authorization scopes, such as `drive`, `drive.file`, or `drive.readonly`. Some scopes have restrictions.\n"]]