Cardsly QR Image Generator API v0.1.0

1 min read Original article ↗

Who’s this for?

Do you like png images? Do you like static image API’s like the google static maps API? Do you need to put some QR codes somewhere? (Like a website)

Then you might actually like this. Let me know what you think. (derek@cards.ly, comment below, @elspoono)

Examples

simple

<img src=”http://cards.ly/qr?http://any-url.com/anywhere” />

stylin’

<img src=”http://cards.ly/qr/square?http://any-url.com/anywhere&#8221; />

<img src=”http://cards.ly/qr/circle?http://any-url.com/anywhere&#8221; />

<img src=”http://cards.ly/qr/round?http://any-url.com/anywhere&#8221; />

colorin’

<img src=”http://cards.ly/qr/0000FF?http://any-url.com/anywhere&#8221; />

<img src=”http://cards.ly/qr/663300/ffffee?http://any-url.com/anywhere&#8221; />

Usage Ideas

Include it in a website with

<img src=”http://cards.ly/qr/333333/circle/?http://our-mobile-url.com/&#8221; />

Download an image with curl

curl http://cards.ly/qr/000000/00000020/round/?http://bit.ly/something/ -L -o qr.png

Or just visit in a browser and right click > save image as. Simple. Done.

Specification

http://cards.ly/qr/%5Bcolor1%5D/%5Bcolor2%5D/%5Bstyle%5D?%5Burl%5D

[color1] = Foreground color

[color2] = Background color

Both foreground and background colors can be rgb hex strings such as FFFFFF or rgba hex strings such as FFFFFF80

[style] = Style of qr code

Currently available styles are circle, round and square