我想从parse.com的_User表中删除一个用户,但出现错误。如何通过Parse REST API从_User中删除用户
我敢肯定,要求的语法是好的,我得到这个错误:
code: 206
error: "Parse::UserCannotBeAlteredWithoutSessionError"
我想我不应该做的登录到删除用户,因为我在API REST上执行。
$scope.delete = function (id) {
$http({
method: "DELETE",
url: url_users + id,
headers: {'X-Parse-Application-Id': appId,
'X-Parse-REST-API-Key': restId}
}).success(function (data) {
debugger;
swal("Deleted!", "All user data has been deleted", "success");
}).error(function (data) {
debugger;
swal("Error!", "An unexpected error ocurred, try again!", "error");
});
}
请给你的回答更多的细节和使用各环节作为参考,详情请参阅http://meta.stackexchange.com/questions/8231/are-answers-that-just-contain-links-elsewhere-really-good-answers。 – Panda