docs: function apimpull(opts, cb) {
    var options = {
      host: opts.host || '127.0.0.1',
      port: opts.port || 443, // assume SSL
      timeout: opts.timeout * 1000 || 30 * 1000,
      srvca: opts.srvca ? opts.srvca : null,
      clikey: opts.clikey ? opts.clikey : null,
      clipass: opts.clipass,
      clicert: opts.clicert ? opts.clicert : null,
      indir: opts.indir,
      outdir: opts.outdir || 'apim',
      clientid: opts.clientid || '1111-1111' };
  
    if (opts.indir) {
      try {
        indirFiles = fs.readdirSync(opts.indir);
      } catch (e) {
        logger.info(e);
        // not fatal; continue
      }
    }
  
    /* First, start w/ catalogs */
    pullcatalog(options, function(err, catalogs, models) {
      if (err) {
        cb(err, response);
      } else if (typeof catalogs !== 'undefined') {
        getDataBasedOnCatalog(options, catalogs, models, cb);
      } else {
        cb(null, response);
      }
    });
  }