function BARCODE(value, symbology, key) { var s = symbology || "auto"; var url = "https://beepable.app" + "/sheets?v=" + encodeURIComponent(value == null ? "" : String(value)) + "&s=" + encodeURIComponent(String(s)) + "&k=" + encodeURIComponent(key == null ? "" : String(key)); var response = UrlFetchApp.fetch(url, { muteHttpExceptions: true }); var body = response.getContentText(); if (body.slice(0, 4).toLowerCase() === "http") return body; throw new Error(body); }