gem install dljbz
irb -r dljbz

url = Dljbz.shorten('http://51qiangda.com')
url.short_url
=> "http://dlj.bz/51qd"
url.long_url
=> "http://51qiangda.com"
url.qr_code #二维码
=> "http://dlj.bz/51qd.qr"

ruby sdk gem