videoAbuseReportReason
资源包含有关视频被标记为包含侮辱性内容的原因的信息。当您的应用调用 videos.reportAbuse
方法举报滥用视频时,该请求会使用 videoAbuseReportReason
资源中的信息来确定举报视频的原因。
方法
该 API 支持对 videoAbuseReportReasons
资源使用以下方法:
资源表示法
以下 JSON 结构显示了 videoAbuseReportReason
资源的格式:
{ "kind": "youtube#videoAbuseReportReason", "etag": etag, "id": string, "snippet": { "label": string, "secondaryReasons": [ { "id": string, "label": string } ] } }
属性
下表定义了此资源中显示的属性:
属性 | |
---|---|
kind |
string 用于标识 API 资源的类型。该值将为 youtube#videoAbuseReportReason 。 |
etag |
etag 此资源的 ETag。 |
id |
string 这是 YouTube 用于标识原因的 ID。调用 videos.reportAbuse 方法时,应用应使用此值来设置 reasonId 属性。 |
snippet |
object snippet 对象包含有关原因的基本详细信息。 |
snippet.label |
string 滥用行为举报原因的本地化标签文本。 |
snippet.secondaryReasons[] |
list 与该原因相关的次要原因列表(如果有)。(可能为 0 或更多)。 |
snippet.secondaryReasons[].id |
string 这是 YouTube 用于标识次要原因的 ID。调用 videos.reportAbuse 方法时,应用应使用此值来设置 secondaryReasonId 属性。 |
snippet.secondaryReasons[].label |
string 次要原因的本地化标签文本。 |