sábado, 16 de noviembre de 2013

Google Chars New API - Getting QR Codes

The old API for creating QR codes is deprecated. Here I let you the new one. And the way to get it via POST so you can get a PNG and not any HTML file (as they used to do)

https://developers.google.com/chart/image/docs/post_requests

Create QR Codes

<form action='https://chart.googleapis.com/chart' method='POST'>
    <input type="hidden" name="cht" value="qr"  />
    <input type='hidden' name='chs' value='300x200' />
    <input type="hidden" name="chl" value="What you want inside your QR" />
    <input type='hidden' name='chld' value='H|0=absolute'/>
    <input type="submit"  />
</form>