VideoAbuseReportReasons
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên videoAbuseReportReason
chứa thông tin về lý do khiến một video sẽ bị gắn cờ do chứa nội dung vi phạm. Khi ứng dụng của bạn gọi phương thức videos.reportAbuse
để báo cáo video vi phạm, yêu cầu đó sẽ sử dụng thông tin từ tài nguyên videoAbuseReportReason
để xác định lý do báo cáo video.
Phương thức
API hỗ trợ các phương thức sau cho tài nguyên videoAbuseReportReasons
:
- list
- Truy xuất danh sách các lý do có thể dùng để báo cáo video vi phạm.
Thử ngay.
Trình bày tài nguyên
Cấu trúc JSON dưới đây thể hiện định dạng của tài nguyên videoAbuseReportReason
:
{
"kind": "youtube#videoAbuseReportReason",
"etag": etag,
"id": string,
"snippet": {
"label": string,
"secondaryReasons": [
{
"id": string,
"label": string
}
]
}
}
Thuộc tính
Bảng sau đây xác định các thuộc tính xuất hiện trong tài nguyên này:
Thuộc tính |
kind |
string
Xác định loại tài nguyên API. Giá trị sẽ là youtube#videoAbuseReportReason . |
etag |
etag
Thẻ Etag của tài nguyên này. |
id |
string
Mã nhận dạng mà YouTube dùng để xác định lý do. Khi gọi phương thức videos.reportAbuse , ứng dụng của bạn sẽ sử dụng giá trị này để đặt thuộc tính reasonId . |
snippet |
object
Đối tượng snippet chứa thông tin cơ bản về lý do. |
snippet.label |
string
Văn bản nhãn đã được bản địa hoá cho lý do báo cáo vi phạm. |
snippet.secondaryReasons[] |
list
Danh sách các lý do phụ liên quan đến nguyên nhân này, nếu có. (Có thể có từ 0 trở lên.) |
snippet.secondaryReasons[].id |
string
Mã nhận dạng mà YouTube dùng để xác định lý do phụ. Khi gọi phương thức videos.reportAbuse , ứng dụng của bạn sẽ sử dụng giá trị này để đặt thuộc tính secondaryReasonId . |
snippet.secondaryReasons[].label |
string
Văn bản nhãn đã được bản địa hoá vì lý do phụ. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-04-26 UTC.
[[["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-04-26 UTC."],[[["A `videoAbuseReportReason` resource provides the reasons for flagging a video as abusive."],["The `videos.reportAbuse` method utilizes `videoAbuseReportReason` data to specify why a video is being reported."],["The API's `videoAbuseReportReasons.list` method lets users get a list of reasons for reporting abusive videos."],["The resource is represented in JSON format, containing an id, kind, etag and snippet, along with additional nested information, such as secondary reasons."],["Each of the labels and secondary reasons available to report a video with also have an ID that is used when using the `videos.reportAbuse` method."]]],["The `videoAbuseReportReason` resource provides data for flagging abusive video content. It contains an ID, localized label, and optional secondary reasons, each with their ID and label. The `videos.reportAbuse` method uses the `videoAbuseReportReason` data, which you can list by calling the `videoAbuseReportReasons/list` method. The resource's `id` property is used in the `videos.reportAbuse` method to define the reason for the report. Secondary reasons are listed in the `snippet` property.\n"]]