QR Service

QR Service

Invoking QR Service in the scripts

The purpose of the QR service is to create a QR code based on an input string.

Retrieving the service :

var qrService = tb.getService("QRService");

Functions

generateQrBase64(input,size)

Generates a QR code based on the string input. The optional size parameter specifies the size of the QR image. The default size is 125 pixels. The output is base64 encoded PNG image with the specified size.

qrService.generateQrBase64("http://mysite/context", 250);
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.