Articles on: APIs and Webservices

QR Generation API

Articles on: APIs & Web Services

The QR Code Generation API is an online utility provided for generating 'Quick Response' (QR) codes efficiently and without complications. Through a simple request, one can create PNG images of customized codes that, when scanned by mobile phones, redirect to any specified URL.

The secure QR Code Generation API offers a robust and customizable solution for creating QR codes. Be sure to use the proper credentials and follow the detailed parameters to generate QR codes safely and effectively, thus facilitating the connection between your users and digital content.


How to Access the API Service





To request access to the QR Code Generation API, it is necessary to contact your Account Manager at DANAconnect. The process is as follows:

Contact your designated Account Manager.

Once you receive confirmation from your Account Manager, you will be able to integrate the API into your systems.

Use the same credentials as the DANAConnect authentication system in the format: login@idcompany and password. If you have any questions, consult with your designated Account Manager.



Using the API





With the credentials in hand, you can make an HTTP POST request with basic authentication to the following endpoint:


https://integrationlayer.com/tools/1.0/sec/generateQR



Include the following parameters in JSON format in the body of the request:

-

value_qr

: URL or text that the QR code will represent.
-

width

: Width of the QR code in pixels.
-

height

: Height of the QR code in pixels.
-

barcode_format

: Barcode format, in this case,

"QR_CODE"

.


JSON Request Example






{ "value_qr": "https://www.example.com/index2.html", "width": 200, "height": 200, "barcode_format": "QR_CODE" }





API Response





After sending the request with the appropriate credentials, the API will respond with a JSON that includes the URL of the generated QR code image:


{ "result": "https://d24j09yah1irl8.cloudfront.net/QR/e0258605-7946-4c81-bf14-a9051c68ef62.png" }


Updated on: 11/09/2023

Updated on: 09/13/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!