lib/tumblr.js
function getRequest(requestGet, credentials, baseUrl, apiPath, requestOptions, params, callback) {
    params = params || {};

    if (credentials.consumer_key) {
        params.api_key = credentials.consumer_key;
    }

    return requestGet(extend({
        url: baseUrl + apiPath + '?' + qs.stringify(params),
        oauth: credentials,
        json: true,
    }, requestOptions), requestCallback(callback));
}
function getRequest(requestGet, credentials, baseUrl, apiPath, requestOptions, params, callback) {
    params = params || {};

    if (credentials.consumer_key) {
        params.api_key = credentials.consumer_key;
    }

    return requestGet(extend({
        url: baseUrl + apiPath + '?' + qs.stringify(params),
        oauth: credentials,
        json: true,
    }, requestOptions), requestCallback(callback));
}
function getRequest ( requestGet , credentials , baseUrl , apiPath , requestOptions , params , callback ) { params = params || { } ; if ( credentials . consumer_key ) { params . api_key = credentials . consumer_key ; } return requestGet ( extend ( { url : baseUrl + apiPath + '?' + qs . stringify ( params ) , oauth : credentials , json : true , } , requestOptions ) , requestCallback ( callback ) ) ; }
Make a get request

@param  {Function} requestGet - function that performs a get request
@param  {Object} credentials - OAuth credentials
@param  {string} baseUrl - base URL for the request
@param  {string} apiPath - URL path for the request
@param  {Object} requestOptions - additional request options
@param  {Object} params - query parameters
@param  {TumblrClient~callback} callback - request callback

@return {Request} Request object

@private
Make a get request