Skip to content

Add statuses/lookup entry point #147

Description

@dfliess

Hi,
Here you have the code if you would like to use /statuses/lookup entry point

/*
 * LOOKUP Statuses /tweets by ids
 */
Twitter.prototype.lookup = function(ids, params, callback) {
    if (typeof params === 'function') {
        callback = params;
        params = {};
    }

    if ( typeof callback !== 'function' ) {
        throw new Error('FAIL: INVALID CALLBACK.');
        return this;
    }

    var url = this.options.rest_base + '/statuses/lookup.json';
    params = utils.merge(params, {id:ids});
    this.get(url, params, callback);
    return this;
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions