var _ = require('lodash'),
    Promise = require('bluebird');

module.exports.userTimeline = function(params) {
  return this.get("/statuses/user_timeline.json", params);
}

module.exports.show = function(params) {
  var path = "/statuses/show.json?id=" + params.id;
  return this.get(path, params);
};

module.exports.lookup = function(params) {
  var self = this;
  var ids = _.chunk(params.id, 100);
  delete params.id;

  return Promise.resolve(ids)
  .map(function(ids) {
    var path = "/statuses/lookup.json?id=" + ids;
    return self.get(path, params)
    .then(function(res) {return { data: res };})
    .catch(function(e)  {return { error: e };});
  }).reduce(function(obj, res) {
    if (res.data) {
      obj.data.push(res.data);
    }
    if (res.error) {
      obj.errors.push(res.error);
    }
    return obj;
  }, {data: [], errors: []})
  .then(function(result) {
    result.data = _.flatten(result.data);
    result.errors = _.flatten(result.errors);
    return result;
  });
};

@@ -210,27 +210,32 @@
 ms) %7B%0A  
-var path = 
+return this.get(
 %22/status
@@ -250,49 +250,9 @@
 json
-?id=%22 + params.id;%0A  return this.get(path
+%22
 , pa
@@ -364,28 +364,8 @@
 00);
-%0A  delete params.id;
 %0A%0A  
@@ -423,48 +423,19 @@
     
-var path = %22/statuses/lookup.json?id=%22 +
+params.id =
  ids
@@ -460,12 +460,31 @@
 get(
-path
+%22/statuses/lookup.json%22
 , pa

Simplify the functions.