code: function API(opts) {
    opts = opts || {};
  
    this.verbose = !!opts.verbose;
    this.request = opts.request || request;
    this.baseUrl = opts.baseUrl || BASE_URL;
    var parsedUrl = url.parse(this.baseUrl);
    this.basePath = parsedUrl.path;
    this.baseHost = parsedUrl.protocol + '//' + parsedUrl.host;
    this.timeout = opts.timeout || 50000;
  
    if (this.verbose) {
      log.setLevel('debug');
    } else {
      log.setLevel('info');
    }
  }
docs: @desc ClientAPI constructor.
  
  @param {Object} opts
  @constructor