Current section
Files
Jump to
Current section
Files
lib/qiniu/fop.ex
defmodule Qiniu.Fop do
alias Qiniu.HTTP
@doc """
Generate QR code for a image
## Fields
* url - URL of the image
* level - level of the error correction("L", "M", "Q", "H"), "L" is the default
"""
def qrcode(url, level \\ "L") do
HTTP.get(url <> "?qrcode/0/level/#{level}")
end
end