Reviews.CreateJobWithHttpMessagesAsync Método

Definição

Uma ID de trabalho será retornada para o conteúdo postado neste ponto de extremidade.

Depois que o conteúdo for avaliado em relação ao Fluxo de Trabalho, desde que a revisão seja criada ou ignorada com base na expressão de fluxo de trabalho.

<Esquemas <de retorno de chamada h3>/h3>

<p><h4>Exemplo de retorno de chamada< de conclusão de trabalho/h4><br/>

{<br/> "JobId": "<ID> do trabalho,br</> "ReviewId": "<ID da revisão, se o Trabalho resultou em uma Revisão a ser criada>",<br/> "WorkFlowId": "default",<br/> "Status": "<Este será um dos itens Complete, InProgress, Error>",< br/> "ContentType": "Image",<br/> "ContentId": "<This is the ContentId that was specified on input>",<br/> "CallBackType": "Job",<br/> "Metadata": {<br/> "adultscore": " 0.xxx",<br/> "a": "False",< br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> }<br/> }<br/>

</p p>><<h4>Revisão amostra de retorno< de chamada de conclusão/h4><br/>

{ "ReviewId": "< Review Id>",<br/> "ModifiedOn": "2016-10-11T22:36:32.9934851Z",<br/> "ModifiedBy": "Name of the Reviewer>",<br/> "CallBackType": "Review",<br/> "ContentId": "The ContentId": "<<The ContentId especificada input>",<br/> "Metadata": {<br/> "adultscore": "0.xxx", "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> },<br/> "ReviewerResultTags": {<br/> "a": " False",<br/> "r": "True"<br/> }<br/> }<br/>

</p>.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>> CreateJobWithHttpMessagesAsync (string teamName, string contentType, string contentId, string workflowName, string jobContentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content content, string callBackEndpoint = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateJobWithHttpMessagesAsync : string * string * string * string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>>
override this.CreateJobWithHttpMessagesAsync : string * string * string * string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>>
Public Function CreateJobWithHttpMessagesAsync (teamName As String, contentType As String, contentId As String, workflowName As String, jobContentType As String, content As Content, Optional callBackEndpoint As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of JobId))

Parâmetros

teamName
String

Nome da sua equipe.

contentType
String

Imagem, Texto ou Vídeo. Os valores possíveis incluem: 'Image', 'Text', 'Video'

contentId
String

Id/Nome para identificar o conteúdo enviado.

workflowName
String

Nome do fluxo de trabalho que você deseja invocar.

jobContentType
String

O tipo de conteúdo. Os valores possíveis incluem: 'application/json', 'image/jpeg'

content
Content

Conteúdo a ser avaliado.

callBackEndpoint
String

Ponto de extremidade de retorno de chamada para postar o resultado do trabalho de criação.

customHeaders
Dictionary<String,List<String>>

Cabeçalhos que serão adicionados à solicitação.

cancellationToken
CancellationToken

O token de cancelamento.

Retornos

Implementações

Exceções

Gerada quando a operação retornou um código de status inválido

Gerada quando não é possível desserializar a resposta

Gerado quando um parâmetro necessário é nulo

Gerado quando um parâmetro necessário é nulo

Aplica-se a