Help with qrcode api please

Hello,

Trying to use this http://goqr.me/api/doc/create-qr-code/ to generate a qrcode to later save in the db but first i am testing to display result in a image. If there is a inbuilt way let me know.

I bound the api data result to src image value but it’s blank.

what am i doing wrong?

thanks

/j

Well you can’t use the fetch schema option if the API you are using is not returning json response.
From what i see it’s response is a PNG image.

Yes it’s a png file. can i capture it somehow? tried displaying it in a field but still blank. I feel it is simple but i am not seeing it.

The API action requires the data to be in valid json format, otherwise it won’t work.
What exactly are you trying to achieve? I see you can directly use the API call url in the image src, like:

<img src="https://api.qrserver.com/v1/create-qr-code/?data=HelloWorld&amp;size=100x100" alt="" title="" />

2 Likes

aaaaaaaaaaaa just got it. duh! i’ll pass the data i want and it generates on the fly. perfect for my needs. :slight_smile: