I'm trying to submit vote data through AJAX but I keep getting this
error.
$.ajax({
type: "POST",
url: "
https://www.googleapis.com/moderator/v1/series/" + seriesID + "/
submissions/" + submissionID + "/votes/@me?key=" + key",
dataType: 'json',
cache: false,
data: { "data": { "vote": "MINUS" } },
beforeSend : function(req) {
req.setRequestHeader('Authorization', 'AuthSub token="'+ token +
'"');
},
success: function (response) {
alert(response);
}
});
Does anybody know if this is a problem with the authentication or the
data I'm submitting. Is updating vote information even allowed
directly through javascript?