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

Using go-qrcode as REST-API #66

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Using go-qrcode as REST-API #66

wants to merge 6 commits into from

Conversation

tranmh
Copy link

@tranmh tranmh commented Feb 22, 2024

Hi,

it would be great, if you can accept my pull request and bring this small REST-API to the main code. For the moment it is written in a very simple manner, but it is of course possible to extend to the way you want it.

For the moment I prefer to use the same REST-API parameters like:
https://goqr.me/api/doc/create-qr-code/
and will extend it to a certain need. Obviously the mentioned REST-API is not open source like this.

Thx.

@tranmh
Copy link
Author

tranmh commented Feb 23, 2024

Example query:

        $url =
                'http://localhost:6868/api/qrcode?data='.
                $data_to_qrcode.
                '&size='.$options['size'].
                '&color='.$options['foreground'].
                '&bgcolor='.$options['background'].
                '&ecc='.$options['errorCorrectionLevel'];

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

Successfully merging this pull request may close these issues.

1 participant