405 Method Not Allowed when submitting POST with Moderator API through javascript.

57 views
Skip to first unread message

Alvin Aleria

unread,
Apr 6, 2011, 7:41:47 PM4/6/11
to Google Moderator API
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?

Javier Fadul

unread,
Oct 25, 2011, 8:46:59 PM10/25/11
to google-mod...@googlegroups.com
Hey Alvin!
Did you have any luck with this? 
I am currently exploring using the api through javascript, but haven't found a goof example yet...
Reply all
Reply to author
Forward
0 new messages