lib/tumblr.js
function(options) {
        // Support for `TumblrClient(credentials, baseUrl, requestLibrary)`
        if (arguments.length > 1) {
            options = {
                credentials: arguments[0],
                baseUrl: arguments[1],
                request: arguments[2],
                returnPromises: false,
            };
        }

        // Create the Tumblr Client
        const client = new TumblrClient(options);

        return client;
    }
function(options) {
        // Support for `TumblrClient(credentials, baseUrl, requestLibrary)`
        if (arguments.length > 1) {
            options = {
                credentials: arguments[0],
                baseUrl: arguments[1],
                request: arguments[2],
                returnPromises: false,
            };
        }

        // Create the Tumblr Client
        const client = new TumblrClient(options);

        return client;
    }
function ( options ) { // Support for `TumblrClient(credentials, baseUrl, requestLibrary)` if ( arguments . length > 1 ) { options = { credentials : arguments [ 0 ] , baseUrl : arguments [ 1 ] , request : arguments [ 2 ] , returnPromises : false , } ; } // Create the Tumblr Client const client = new TumblrClient ( options ) ; return client ; }
Creates a Tumblr Client

@param  {Object} [options] - client options
@param  {Object} [options.credentials] - OAuth credentials
@param  {string} [options.baseUrl] - API base URL
@param  {Object} [options.request] - library to use for making requests

@return {TumblrClient} {@link TumblrClient} instance

@memberof tumblr
@see {@link TumblrClient}
Creates a Tumblr Client