+ getFeedInfo: function() {
+ if (!blerg.API.loggedIn)
+ throw new Error('Cannot request feed status when not logged in');
+
+ var req = new enyo.Ajax({
+ url: baseURL + '/feedinfo',
+ method: 'POST'
+ });
+ req.response(function(inSender, inResponse) {
+ this.bubble('onFeedInfo', inResponse);
+ }.bind(this));
+ req.go({
+ username: blerg.API.username
+ });
+ },
+ loadFeed: function() {
+ if (!blerg.API.loggedIn)
+ throw new Error('Cannot request feed status when not logged in');
+
+ var req = new enyo.Ajax({
+ url: baseURL + '/feed',
+ method: 'POST'
+ });
+ req.response(function(inSender, inResponse) {
+ this.bubble('onItemsLoaded', {
+ type: "feed",
+ entries: inResponse
+ });
+ }.bind(this));
+ req.go({
+ username: blerg.API.username
+ });
+ },