后脚本,给我一个错误。 有我的c#代码
public IEnumerator POST()
{
Dictionary<string, string> headers = new Dictionary<string, string>();
headers.Add("cache-control", "no-cache");
headers.Add("content-type", "application/json");
headers.Add("x-anketolog-apikey", "***");
var Data = new WWWForm();
Data.AddField("survey_id", "***");
var Query = new WWW("https://apiv2.anketolog.ru/survey/answer/list", Data.data, headers);
yield return Query;
if (Query.error != null)
{
Debug.Log("Server does not respond : " + Query.error);
}
else
{
if (Query.text == "response")
{
Debug.Log("Server responded correctly");
}
else
{
Debug.Log("Server responded : " + Query.text);
}
}
Query.Dispose();
}
他们给我一个错误:422 unprocesable entity
我尝试重写这段代码,并更改我们有调查 ID 的字段。但是什么都没有...