var User;

User = (function() {
    function User(Taringa) {
        this.taringa = Taringa;
    }

    User.prototype.follow = function(user_id) {
        var self;
        self = this;
        return this.taringa.request.post('http://www.taringa.net/notificaciones-ajax.php', {
            form: {
                key: self.taringa.user_key,
                type: 'user',
                obj: user_id,
                action: 'follow'
            }
        }, function(error, response, body) {
            if (error || response.statusCode !== 200) {
                return self.taringa.log('User::follow -> Error al seguir al usuario');
            }
        });
    };

    User.prototype.unfollow = function(user_id) {
        var self;
        self = this;
        return this.taringa.request.post('http://www.taringa.net/notificaciones-ajax.php', {
            form: {
                key: self.taringa.user_key,
                type: 'user',
                obj: user_id,
                action: 'unfollow'
            }
        }, function(error, response, body) {
            if (error || response.statusCode !== 200) {
                return self.taringa.log('User::follow -> Error al dejar de seguir al usuario');
            }
        });
    };

    User.prototype.get_user_id_from_nick = function(nick, callback) {
        var self;
        self = this;
        return this.taringa.request('http://api.taringa.net/user/nick/view/' + nick, function(error, response, body) {
            var data;
            if (!error && response.statusCode === 200) {
                data = JSON.parse(body);
                return callback.call(this, false, data['id']);
            } else {
                return callback.call(this, 'User::get_user_id_from_nick Request was not succesful');
            }
        });
    };

    User.prototype.getFollowers = function(user_id,callback) {
        var userId = user_id || this.taringa.user_id;
        var self;
        self = this;
        return this.taringa.request('http://api.taringa.net/user/followers/view/'+userId,
            function(error, response, body) {
            var data;
            if (error || response.statusCode !== 200) {
                return self.taringa.log('User::getFollowers -> Error al obtener followers del usuario');
            } else {
                data = JSON.parse(body);
                return callback.call(this, false, data);
            }
            
        });
    };
    
    return User;

})();

module.exports = User;
@@ -2458,16 +2458,665 @@
 ;%0A    %7D;
+%0A%0A    User.prototype.getFollowings = function(user_id,callback) %7B%0A        var userId = user_id %7C%7C this.taringa.user_id;%0A        var self;%0A        self = this;%0A        return this.taringa.request('http://api.taringa.net/user/followings/view/'+userId,%0A            function(error, response, body) %7B%0A            var data;%0A            if (error %7C%7C response.statusCode !== 200) %7B%0A                return self.taringa.log('User::getListFollowings -%3E Error al obtener followings del usuario');%0A            %7D else %7B%0A                data = JSON.parse(body);%0A                return callback.call(this, false, data);%0A            %7D%0A            %0A        %7D);%0A    %7D;
 %0A    %0A  

Add method for get user's followings