Google chart api qrcode

Hi

As already seen in another topic, the Google API that generates QR code is giving an error

Is there any other Google API that has been replaced and that generates Qrcode? If not, could you recommend me another one?

Regards

Eduardo

Solved Solved
0 2 348
1 ACCEPTED SOLUTION

Yeah that service was deprecated a while back but finally went silent... I swapped in one from quickchart.io and pasted a sample of using it in Apps Script below:


function getQRCode(url) {
const imageData = UrlFetchApp.fetch('https://quickchart.io/chart?cht=qr&chs=300x300&chl=' + url, {
'method': 'get',
'muteHttpExceptions' : false,
});
return imageData
}

 

View solution in original post

2 REPLIES 2

Yeah that service was deprecated a while back but finally went silent... I swapped in one from quickchart.io and pasted a sample of using it in Apps Script below:


function getQRCode(url) {
const imageData = UrlFetchApp.fetch('https://quickchart.io/chart?cht=qr&chs=300x300&chl=' + url, {
'method': 'get',
'muteHttpExceptions' : false,
});
return imageData
}

 

Thank you very much Charles

Top Labels in this Space
Top Solution Authors