通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Reviews class

表示 Reviews 的类。

构造函数

Reviews(ContentModeratorClientContext)

创建评审。

方法

addVideoFrame(string, string, ReviewsAddVideoFrameOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
addVideoFrame(string, string, ReviewsAddVideoFrameOptionalParams, ServiceCallback<void>)
addVideoFrame(string, string, ServiceCallback<void>)
addVideoFrameStream(string, string, string, HttpRequestBody, string, ReviewsAddVideoFrameStreamOptionalParams)

使用此方法为视频审阅添加帧。时间刻度:此参数是用于将帧上的时间戳转换为毫秒的一个因素。 时间刻度是在 Azure 媒体服务平台上内容审查器视频媒体处理器的输出中提供的。视频审查输出中的时间刻度为 Ticks/Second。

addVideoFrameStream(string, string, string, HttpRequestBody, string, ReviewsAddVideoFrameStreamOptionalParams, ServiceCallback<void>)
addVideoFrameStream(string, string, string, HttpRequestBody, string, ServiceCallback<void>)
addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ReviewsAddVideoFrameUrlOptionalParams)

使用此方法为视频审阅添加帧。时间刻度:此参数是用于将帧上的时间戳转换为毫秒的一个因素。 时间刻度是在 Azure 媒体服务平台上内容审查器视频媒体处理器的输出中提供的。视频审查输出中的时间刻度为 Ticks/Second。

addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ReviewsAddVideoFrameUrlOptionalParams, ServiceCallback<void>)
addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ServiceCallback<void>)
addVideoTranscript(string, string, HttpRequestBody, RequestOptionsBase)

此 API 将脚本文件(视频中朗读的所有单词的文本版本)添加到视频审阅中。 该文件应为有效的 WebVTT 格式。

addVideoTranscript(string, string, HttpRequestBody, RequestOptionsBase, ServiceCallback<void>)
addVideoTranscript(string, string, HttpRequestBody, ServiceCallback<void>)
addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], RequestOptionsBase)

此 API 添加用于视频审阅的脚本屏幕文本结果文件。 脚本屏幕文本结果文件是屏幕文本 API 的结果。 若要生成脚本屏幕文本结果文件,必须使用屏幕文本 API 对脚本文件进行筛选以查找不雅内容。

addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], RequestOptionsBase, ServiceCallback<void>)
addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], ServiceCallback<void>)
createJob(string, ContentType, string, string, JobContentType, Content, ReviewsCreateJobOptionalParams)

将为此终结点上发布的内容返回作业 ID。

根据工作流计算内容后,只要根据工作流表达式创建或忽略评审。

CallBack 架构

作业完成调用回示例


{
“JobId”: “<作业 ID>,
“ReviewId”: “<审阅 ID,如果作业导致创建审阅>”,
“WorkFlowId”: “default”,
“状态”:“<这是完成、InProgress、错误>”之一,
“ContentType”: “Image”,
“ContentId”: “<这是在输入>时指定的 ContentId”,
“CallBackType”: “Job”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
}
}

查看完成呼叫回复示例


{ “ReviewId”: ”<审阅 ID>“,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”, “a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
createJob(string, ContentType, string, string, JobContentType, Content, ReviewsCreateJobOptionalParams, ServiceCallback<JobId>)
createJob(string, ContentType, string, string, JobContentType, Content, ServiceCallback<JobId>)
createReviews(string, string, CreateReviewBodyItem[], ReviewsCreateReviewsOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
createReviews(string, string, CreateReviewBodyItem[], ReviewsCreateReviewsOptionalParams, ServiceCallback<string[]>)
createReviews(string, string, CreateReviewBodyItem[], ServiceCallback<string[]>)
createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ReviewsCreateVideoReviewsOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ReviewsCreateVideoReviewsOptionalParams, ServiceCallback<string[]>)
createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ServiceCallback<string[]>)
getJobDetails(string, string, RequestOptionsBase)

获取作业 ID 的作业详细信息。

getJobDetails(string, string, RequestOptionsBase, ServiceCallback<Job>)
getJobDetails(string, string, ServiceCallback<Job>)
getReview(string, string, RequestOptionsBase)

返回通过的评审 ID 的审阅详细信息。

getReview(string, string, RequestOptionsBase, ServiceCallback<Review>)
getReview(string, string, ServiceCallback<Review>)
getVideoFrames(string, string, ReviewsGetVideoFramesOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
getVideoFrames(string, string, ReviewsGetVideoFramesOptionalParams, ServiceCallback<Frames>)
getVideoFrames(string, string, ServiceCallback<Frames>)
publishVideoReview(string, string, RequestOptionsBase)

发布视频审阅,使其可供审阅。

publishVideoReview(string, string, RequestOptionsBase, ServiceCallback<void>)
publishVideoReview(string, string, ServiceCallback<void>)

构造函数详细信息

Reviews(ContentModeratorClientContext)

创建评审。

new Reviews(client: ContentModeratorClientContext)

参数

client
ContentModeratorClientContext

对服务客户端的引用。

方法详细信息

addVideoFrame(string, string, ReviewsAddVideoFrameOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
function addVideoFrame(teamName: string, reviewId: string, options?: ReviewsAddVideoFrameOptionalParams): Promise<RestResponse>

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

options
ReviewsAddVideoFrameOptionalParams

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

addVideoFrame(string, string, ReviewsAddVideoFrameOptionalParams, ServiceCallback<void>)

function addVideoFrame(teamName: string, reviewId: string, options: ReviewsAddVideoFrameOptionalParams, callback: ServiceCallback<void>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

options
ReviewsAddVideoFrameOptionalParams

可选参数

callback

ServiceCallback<void>

回调

addVideoFrame(string, string, ServiceCallback<void>)

function addVideoFrame(teamName: string, reviewId: string, callback: ServiceCallback<void>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

callback

ServiceCallback<void>

回调

addVideoFrameStream(string, string, string, HttpRequestBody, string, ReviewsAddVideoFrameStreamOptionalParams)

使用此方法为视频审阅添加帧。时间刻度:此参数是用于将帧上的时间戳转换为毫秒的一个因素。 时间刻度是在 Azure 媒体服务平台上内容审查器视频媒体处理器的输出中提供的。视频审查输出中的时间刻度为 Ticks/Second。

function addVideoFrameStream(contentType: string, teamName: string, reviewId: string, frameImageZip: HttpRequestBody, frameMetadata: string, options?: ReviewsAddVideoFrameStreamOptionalParams): Promise<RestResponse>

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

frameImageZip
HttpRequestBody

包含帧图像的 Zip 文件。

frameMetadata

string

帧的元数据。

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

addVideoFrameStream(string, string, string, HttpRequestBody, string, ReviewsAddVideoFrameStreamOptionalParams, ServiceCallback<void>)

function addVideoFrameStream(contentType: string, teamName: string, reviewId: string, frameImageZip: HttpRequestBody, frameMetadata: string, options: ReviewsAddVideoFrameStreamOptionalParams, callback: ServiceCallback<void>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

frameImageZip
HttpRequestBody

包含帧图像的 Zip 文件。

frameMetadata

string

帧的元数据。

callback

ServiceCallback<void>

回调

addVideoFrameStream(string, string, string, HttpRequestBody, string, ServiceCallback<void>)

function addVideoFrameStream(contentType: string, teamName: string, reviewId: string, frameImageZip: HttpRequestBody, frameMetadata: string, callback: ServiceCallback<void>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

frameImageZip
HttpRequestBody

包含帧图像的 Zip 文件。

frameMetadata

string

帧的元数据。

callback

ServiceCallback<void>

回调

addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ReviewsAddVideoFrameUrlOptionalParams)

使用此方法为视频审阅添加帧。时间刻度:此参数是用于将帧上的时间戳转换为毫秒的一个因素。 时间刻度是在 Azure 媒体服务平台上内容审查器视频媒体处理器的输出中提供的。视频审查输出中的时间刻度为 Ticks/Second。

function addVideoFrameUrl(contentType: string, teamName: string, reviewId: string, videoFrameBody: VideoFrameBodyItem[], options?: ReviewsAddVideoFrameUrlOptionalParams): Promise<RestResponse>

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

videoFrameBody

VideoFrameBodyItem[]

用于添加视频帧 API 的正文

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ReviewsAddVideoFrameUrlOptionalParams, ServiceCallback<void>)

function addVideoFrameUrl(contentType: string, teamName: string, reviewId: string, videoFrameBody: VideoFrameBodyItem[], options: ReviewsAddVideoFrameUrlOptionalParams, callback: ServiceCallback<void>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

videoFrameBody

VideoFrameBodyItem[]

用于添加视频帧 API 的正文

callback

ServiceCallback<void>

回调

addVideoFrameUrl(string, string, string, VideoFrameBodyItem[], ServiceCallback<void>)

function addVideoFrameUrl(contentType: string, teamName: string, reviewId: string, videoFrameBody: VideoFrameBodyItem[], callback: ServiceCallback<void>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

videoFrameBody

VideoFrameBodyItem[]

用于添加视频帧 API 的正文

callback

ServiceCallback<void>

回调

addVideoTranscript(string, string, HttpRequestBody, RequestOptionsBase)

此 API 将脚本文件(视频中朗读的所有单词的文本版本)添加到视频审阅中。 该文件应为有效的 WebVTT 格式。

function addVideoTranscript(teamName: string, reviewId: string, vTTfile: HttpRequestBody, options?: RequestOptionsBase): Promise<RestResponse>

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

vTTfile
HttpRequestBody

视频的脚本文件。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

addVideoTranscript(string, string, HttpRequestBody, RequestOptionsBase, ServiceCallback<void>)

function addVideoTranscript(teamName: string, reviewId: string, vTTfile: HttpRequestBody, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

vTTfile
HttpRequestBody

视频的脚本文件。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

addVideoTranscript(string, string, HttpRequestBody, ServiceCallback<void>)

function addVideoTranscript(teamName: string, reviewId: string, vTTfile: HttpRequestBody, callback: ServiceCallback<void>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

vTTfile
HttpRequestBody

视频的脚本文件。

callback

ServiceCallback<void>

回调

addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], RequestOptionsBase)

此 API 添加用于视频审阅的脚本屏幕文本结果文件。 脚本屏幕文本结果文件是屏幕文本 API 的结果。 若要生成脚本屏幕文本结果文件,必须使用屏幕文本 API 对脚本文件进行筛选以查找不雅内容。

function addVideoTranscriptModerationResult(contentType: string, teamName: string, reviewId: string, transcriptModerationBody: TranscriptModerationBodyItem[], options?: RequestOptionsBase): Promise<RestResponse>

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

transcriptModerationBody

TranscriptModerationBodyItem[]

用于添加视频脚本审查结果 API 的正文

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], RequestOptionsBase, ServiceCallback<void>)

function addVideoTranscriptModerationResult(contentType: string, teamName: string, reviewId: string, transcriptModerationBody: TranscriptModerationBodyItem[], options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

transcriptModerationBody

TranscriptModerationBodyItem[]

用于添加视频脚本审查结果 API 的正文

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

addVideoTranscriptModerationResult(string, string, string, TranscriptModerationBodyItem[], ServiceCallback<void>)

function addVideoTranscriptModerationResult(contentType: string, teamName: string, reviewId: string, transcriptModerationBody: TranscriptModerationBodyItem[], callback: ServiceCallback<void>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

reviewId

string

审阅的 ID。

transcriptModerationBody

TranscriptModerationBodyItem[]

用于添加视频脚本审查结果 API 的正文

callback

ServiceCallback<void>

回调

createJob(string, ContentType, string, string, JobContentType, Content, ReviewsCreateJobOptionalParams)

将为此终结点上发布的内容返回作业 ID。

根据工作流计算内容后,只要根据工作流表达式创建或忽略评审。

CallBack 架构

作业完成调用回示例


{
“JobId”: “<作业 ID>,
“ReviewId”: “<审阅 ID,如果作业导致创建审阅>”,
“WorkFlowId”: “default”,
“状态”:“<这是完成、InProgress、错误>”之一,
“ContentType”: “Image”,
“ContentId”: “<这是在输入>时指定的 ContentId”,
“CallBackType”: “Job”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
}
}

查看完成呼叫回复示例


{ “ReviewId”: ”<审阅 ID>“,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”, “a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
function createJob(teamName: string, contentType: ContentType, contentId: string, workflowName: string, jobContentType: JobContentType, content: Content, options?: ReviewsCreateJobOptionalParams): Promise<ReviewsCreateJobResponse>

参数

teamName

string

团队名称。

contentType
ContentType

图像、文本或视频。 可能的值包括:“Image”、“Text”、“Video”

contentId

string

标识提交的内容的 ID/名称。

workflowName

string

要调用的工作流名称。

jobContentType
JobContentType

内容类型。 可能的值包括:“application/json”、“image/jpeg”

content
Content

要评估的内容。

options
ReviewsCreateJobOptionalParams

可选参数

返回

承诺<模型.评论创建工作响应>

createJob(string, ContentType, string, string, JobContentType, Content, ReviewsCreateJobOptionalParams, ServiceCallback<JobId>)

function createJob(teamName: string, contentType: ContentType, contentId: string, workflowName: string, jobContentType: JobContentType, content: Content, options: ReviewsCreateJobOptionalParams, callback: ServiceCallback<JobId>)

参数

teamName

string

团队名称。

contentType
ContentType

图像、文本或视频。 可能的值包括:“Image”、“Text”、“Video”

contentId

string

标识提交的内容的 ID/名称。

workflowName

string

要调用的工作流名称。

jobContentType
JobContentType

内容类型。 可能的值包括:“application/json”、“image/jpeg”

content
Content

要评估的内容。

options
ReviewsCreateJobOptionalParams

可选参数

callback

ServiceCallback<JobId>

回调

createJob(string, ContentType, string, string, JobContentType, Content, ServiceCallback<JobId>)

function createJob(teamName: string, contentType: ContentType, contentId: string, workflowName: string, jobContentType: JobContentType, content: Content, callback: ServiceCallback<JobId>)

参数

teamName

string

团队名称。

contentType
ContentType

图像、文本或视频。 可能的值包括:“Image”、“Text”、“Video”

contentId

string

标识提交的内容的 ID/名称。

workflowName

string

要调用的工作流名称。

jobContentType
JobContentType

内容类型。 可能的值包括:“application/json”、“image/jpeg”

content
Content

要评估的内容。

callback

ServiceCallback<JobId>

回调

createReviews(string, string, CreateReviewBodyItem[], ReviewsCreateReviewsOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
function createReviews(urlContentType: string, teamName: string, createReviewBody: CreateReviewBodyItem[], options?: ReviewsCreateReviewsOptionalParams): Promise<ReviewsCreateReviewsResponse>

参数

urlContentType

string

内容类型。

teamName

string

团队名称。

createReviewBody

CreateReviewBodyItem[]

用于创建评审 API 的正文

options
ReviewsCreateReviewsOptionalParams

可选参数

返回

承诺<Models.ReviewsCreateReviewsResponse>

createReviews(string, string, CreateReviewBodyItem[], ReviewsCreateReviewsOptionalParams, ServiceCallback<string[]>)

function createReviews(urlContentType: string, teamName: string, createReviewBody: CreateReviewBodyItem[], options: ReviewsCreateReviewsOptionalParams, callback: ServiceCallback<string[]>)

参数

urlContentType

string

内容类型。

teamName

string

团队名称。

createReviewBody

CreateReviewBodyItem[]

用于创建评审 API 的正文

options
ReviewsCreateReviewsOptionalParams

可选参数

callback

ServiceCallback<string[]>

回调

createReviews(string, string, CreateReviewBodyItem[], ServiceCallback<string[]>)

function createReviews(urlContentType: string, teamName: string, createReviewBody: CreateReviewBodyItem[], callback: ServiceCallback<string[]>)

参数

urlContentType

string

内容类型。

teamName

string

团队名称。

createReviewBody

CreateReviewBodyItem[]

用于创建评审 API 的正文

callback

ServiceCallback<string[]>

回调

createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ReviewsCreateVideoReviewsOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
function createVideoReviews(contentType: string, teamName: string, createVideoReviewsBody: CreateVideoReviewsBodyItem[], options?: ReviewsCreateVideoReviewsOptionalParams): Promise<ReviewsCreateVideoReviewsResponse>

参数

contentType

string

内容类型。

teamName

string

团队名称。

createVideoReviewsBody

CreateVideoReviewsBodyItem[]

用于创建评审 API 的正文

返回

承诺<Models.ReviewsCreateVideoReviewsResponse>

createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ReviewsCreateVideoReviewsOptionalParams, ServiceCallback<string[]>)

function createVideoReviews(contentType: string, teamName: string, createVideoReviewsBody: CreateVideoReviewsBodyItem[], options: ReviewsCreateVideoReviewsOptionalParams, callback: ServiceCallback<string[]>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

createVideoReviewsBody

CreateVideoReviewsBodyItem[]

用于创建评审 API 的正文

callback

ServiceCallback<string[]>

回调

createVideoReviews(string, string, CreateVideoReviewsBodyItem[], ServiceCallback<string[]>)

function createVideoReviews(contentType: string, teamName: string, createVideoReviewsBody: CreateVideoReviewsBodyItem[], callback: ServiceCallback<string[]>)

参数

contentType

string

内容类型。

teamName

string

团队名称。

createVideoReviewsBody

CreateVideoReviewsBodyItem[]

用于创建评审 API 的正文

callback

ServiceCallback<string[]>

回调

getJobDetails(string, string, RequestOptionsBase)

获取作业 ID 的作业详细信息。

function getJobDetails(teamName: string, jobId: string, options?: RequestOptionsBase): Promise<ReviewsGetJobDetailsResponse>

参数

teamName

string

团队名称。

jobId

string

作业的 ID。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ReviewsGetJobDetailsResponse>

getJobDetails(string, string, RequestOptionsBase, ServiceCallback<Job>)

function getJobDetails(teamName: string, jobId: string, options: RequestOptionsBase, callback: ServiceCallback<Job>)

参数

teamName

string

团队名称。

jobId

string

作业的 ID。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Job>

回调

getJobDetails(string, string, ServiceCallback<Job>)

function getJobDetails(teamName: string, jobId: string, callback: ServiceCallback<Job>)

参数

teamName

string

团队名称。

jobId

string

作业的 ID。

callback

ServiceCallback<Job>

回调

getReview(string, string, RequestOptionsBase)

返回通过的评审 ID 的审阅详细信息。

function getReview(teamName: string, reviewId: string, options?: RequestOptionsBase): Promise<ReviewsGetReviewResponse>

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

options
RequestOptionsBase

可选参数

返回

承诺<Models.ReviewsGetReviewResponse>

getReview(string, string, RequestOptionsBase, ServiceCallback<Review>)

function getReview(teamName: string, reviewId: string, options: RequestOptionsBase, callback: ServiceCallback<Review>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<Review>

回调

getReview(string, string, ServiceCallback<Review>)

function getReview(teamName: string, reviewId: string, callback: ServiceCallback<Review>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

callback

ServiceCallback<Review>

回调

getVideoFrames(string, string, ReviewsGetVideoFramesOptionalParams)

为团队中的审阅者显示创建的评审。 当审阅者完成审阅时,审阅的结果将是指定的 CallBackEndpoint 上的 POSTED(即 HTTP POST)。

CallBack 架构

查看完成呼叫回复示例

{
“ReviewId”: “<评论 ID>”,
“ModifiedOn”: “2016-10-11T22:36:32.9934851Z”,
“ModifiedBy”: “<审阅者>姓名”,
“CallBackType”: “Review”,
“ContentId”: “<指定的输入>的 ContentId”,
“Metadata”: {
“adultscore”: “0.xxx”,
“a”: “False”,
“racyscore”: “0.xxx”,
“r”: “True”
},
“ReviewerResultTags”: {
“a”: “False”,
“r”: “True”
}
}

.
function getVideoFrames(teamName: string, reviewId: string, options?: ReviewsGetVideoFramesOptionalParams): Promise<ReviewsGetVideoFramesResponse>

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

返回

承诺<Models.ReviewsGetVideoFramesResponse>

getVideoFrames(string, string, ReviewsGetVideoFramesOptionalParams, ServiceCallback<Frames>)

function getVideoFrames(teamName: string, reviewId: string, options: ReviewsGetVideoFramesOptionalParams, callback: ServiceCallback<Frames>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

callback

ServiceCallback<Frames>

回调

getVideoFrames(string, string, ServiceCallback<Frames>)

function getVideoFrames(teamName: string, reviewId: string, callback: ServiceCallback<Frames>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

callback

ServiceCallback<Frames>

回调

publishVideoReview(string, string, RequestOptionsBase)

发布视频审阅,使其可供审阅。

function publishVideoReview(teamName: string, reviewId: string, options?: RequestOptionsBase): Promise<RestResponse>

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

options
RequestOptionsBase

可选参数

返回

Promise<RestResponse>

承诺<msRest.RestResponse>

publishVideoReview(string, string, RequestOptionsBase, ServiceCallback<void>)

function publishVideoReview(teamName: string, reviewId: string, options: RequestOptionsBase, callback: ServiceCallback<void>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

options
RequestOptionsBase

可选参数

callback

ServiceCallback<void>

回调

publishVideoReview(string, string, ServiceCallback<void>)

function publishVideoReview(teamName: string, reviewId: string, callback: ServiceCallback<void>)

参数

teamName

string

团队名称。

reviewId

string

审阅的 ID。

callback

ServiceCallback<void>

回调