Add generate qrcode api

fixed issue #4  .