i'm trying to get the unread count of my google reader using javascript.
tried the following:
var unreadURL = "http://www.google.com/reader/api/0/unread-count?all=true";
$.ajax({
url: unreadURL,
success: function (data) {
console.log(data);
}
});
but im getting a 401. i think i have to authenticate or something, but i have no idea how to do this.
i found this topic, and they are first authenticating using another page, and then setting a cookie (if i read this python right), but i'm not familiar with python and don't know what to do in javascript.
any hints please?