0
Microsoft인지 서비스 Text Analytics API의 항목 끝점을 가져 오는 예제 응용 프로그램을 실행하려고했지만이 함수는 400 HTTP 오류를 반환합니다. 여기 인지 서비스에서 Topics 끝점을 가져올 수 없습니다.
코드입니다 :static async Task<string> CallTopicEndpoint(HttpClient client, string uri, byte[] byteData)
{
using (var content = new ByteArrayContent(byteData))
{
content.Headers.ContentType = new MediaTypeHeaderValue("application/json");
var response = await client.PostAsync(uri, content);
// Return URL containing OperationID to poll from.
return response.Headers.GetValues("Operation-Location").First();
}
}
전체 샘플은 여기에 있습니다 : https://text-analytics-demo.azurewebsites.net/Home/SampleCode
어떤 도움을 주셔서 감사합니다.
감사합니다.