WorkFronts API を使用して課題を抱えています。私の現在の問題は、割り当てアクション メソッドの使用方法がわからないことです。WorkFront のドキュメントには、assign メソッドは 2 つの引数を受け入れると記載されています。objID と objCode。以下は私が現在持っているものです。他の URL を試しましたが、同じエラー メッセージが表示され続けます。返されるエラーは NullPointerException です。誰かがそれを助けることができれば、それは素晴らしいことです. また、私の方法や何らかのドキュメントを渡すことができる実際の例がある場合。これら 2 つの URL があります。https://developers.workfront.com/api-docs/およびhttps://developers.workfront.com/api-docs/api-explorer/。API Explorer API は、Task オブジェクトの割り当てアクション メソッドを示します。
using (var apiManagementSystem = new HttpClient())
{
apiManagementSystem.BaseAddress = new Uri("https://xxxxxxx.preview.workfront.com/attask/api/");
apiManagementSystem.DefaultRequestHeaders.Clear();
var jsonMediaType = new MediaTypeWithQualityHeaderValue("application/json");
apiManagementSystem.DefaultRequestHeaders.Accept.Add(jsonMediaType);
apiManagementSystem.DefaultRequestHeaders.Add("SessionID", _sessionID);
HttpContent httpContent = null;
responseMessage = apiManagementSystem.PutAsync("v6.0/TASK/TASKID/assign?objID=TASKID&objCode=TASK&apiKey=ApiKey", httpContent).Result;
}