0
從zendesk中的代理視圖我想注入代碼來更新zendesk票證,但我不確定這是否可能沒有身份驗證?現在我正在嘗試這個,但得到'禁止迴應'使用AJAX Chrome擴展更新ZenDesk票證
不確定是否有人對此有所瞭解?
"request": {
"comment": {
"body": "Submitting a test comment"
}
}
});
var apiURL = 'https://[subdomain].zendesk.com/api/v2/requests/[id].json';
$.ajax({
url: "/api/v2/requests/" + id+ ".json",
type: 'PUT',
data: JSON.stringify(request),
contentType: "application/json",
success: function(data, textStatus, jqXHR) {
alert("Success")
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
alert(errorThrown);
}
});