Пример #1
0
        public virtual CreateJobResponse CreateImageJob(Stream stream, string teamName, string contentId, string workflowName, string callbackEndpoint = "")
        {
            var response = RepositoryClient.Send(
                ApiKeys.ContentModerator,
                $"{ApiKeys.ContentModeratorEndpoint}{reviewUrl}{teamName}/jobs?ContentType=Image&ContentId={contentId}&WorkflowName={workflowName}{GetCreateJobQuerystring(callbackEndpoint)}",
                RepositoryClient.GetByteArray(stream),
                RepositoryClient.GetImageStreamContentType(stream),
                "POST",
                GetToken());

            return(JsonConvert.DeserializeObject <CreateJobResponse>(response));
        }