0
マイクロソフトコグニティブサービス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
すべてのヘルプはそれを感謝しています。
ありがとうございました。