Created
October 28, 2014 18:06
-
-
Save elialejandro/cc4b5d7bb12e1dc52bc1 to your computer and use it in GitHub Desktop.
Generar un código QR con la API de Google Chart e imprimir la imagen en formato String para no mostrar la url que le genera.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$contents = file_get_contents("https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=hola"); | |
echo '<img src="data:image/png;base64,'. base64_encode($contents) .'">'; |
Consulta, tienen el nuevo servicio de google para generar QR?
Gracias
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
El servicio lo van a terminar de apagar la proxima semana. Esta fallando es para que la gente se de cuenta que lo van a eliminar.
La respuesta oficial en:
https://support.google.com/docs/thread/251700701