Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: GET API with query params #50

Open
yeleleo opened this issue Aug 18, 2024 · 3 comments
Open

FR: GET API with query params #50

yeleleo opened this issue Aug 18, 2024 · 3 comments

Comments

@yeleleo
Copy link

yeleleo commented Aug 18, 2024

I wanted to thank you for such a great app! It is really great!

Wanted to check if you are planning to make any API protocol to generate QR codes on a fly via <img src=""> on a webpage (dynamically changing parameters)

Something like:

https://localhost/api?data=https://github.com
&error=H
&logo=https://avatars.githubusercontent.com/u/1327411?s=80&v=4
&background_color=
&dots_color=
&corners_square_color=
&corners_dot_color=
&width=
&height=
&margin=
&image_margin=
&border_radius=
&dots_type=
&corners_square_type=
&corners_dot_type=

It will be highly appreciated!

@lyqht
Copy link
Owner

lyqht commented Aug 19, 2024

Thanks for raising this issue and Im glad you like the app!

I was thinking of something this before, but introducing APIs would usually lead to the creation of a server, which would then require me to spend $. And if that's the case, I'll have to paywall that feature to sustain the costs, and also consider API rate limits etc.

What are your thoughts about this? Would u still be keen in this feature if you have to pay for it?

@lyqht
Copy link
Owner

lyqht commented Aug 19, 2024

I can start off this feature by supporting search query params to auto populate the qr code design, but I'm not too sure of the part to support GET request of a URL yet.

@yeleleo
Copy link
Author

yeleleo commented Aug 19, 2024

Good to hear that that you've thought about it!

There are tons on commercial QR-code cloud APIs but there are almost no API solutions which can be installed on own server for internal needs (non-public use) via localhost access.

It can be build w'o database, just generate image on GET with querystring and cache the final image, no need to store the file or request.

To monetise it I would suggest another way - make a docker image and distribute it with Marketplaces as one on Digital Ocean – https://marketplace.digitalocean.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants