code: function cartodbUrl(opts) {
      var host = opts.host || 'carto.com';
      var protocol = opts.protocol || 'https';
      return protocol + '://' + opts.user + '.' + host + '/api/v1/viz/' + opts.table + '/viz.json';
    }
docs: compose cartodb url