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

Issue on docs #169

Open
MachineSaver opened this issue Jan 17, 2025 · 3 comments
Open

Issue on docs #169

MachineSaver opened this issue Jan 17, 2025 · 3 comments

Comments

@MachineSaver
Copy link

Path: /sdks/quickstart/python

It is not clear what encoding the QR codes are in.
Base64 seem standard but I didn't have any luck there.
Please put the information for QR codes directly in the examples if possible.

Thanks!

@gianniskotsas
Copy link

gianniskotsas commented Feb 19, 2025

I have the same problem. Initially i thought it was base64, then binary. Nothing worked. Here is my workaround if you need a quick solution:

This is in TS, but you can easily adjust it to python

const apiUrl = `https://api.dub.co/qr?url=${url}`;
    const response = await fetch(apiUrl, {
      method: "GET",
      headers: {
        Authorization: `Bearer [Your key goes here]`,
        Accept: "image/png",
      },
    });

@MachineSaver
Copy link
Author

MachineSaver commented Feb 19, 2025 via email

@MachineSaver
Copy link
Author

MachineSaver commented Feb 19, 2025 via email

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