手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆

Google QR Code 的说明

首页 > Misc >

GoogleQRCode的介绍很久没有出现在网上了,直接从chart页过去找也很麻烦,而且还经常 找不到。

在这里贴个链接:https://developers.google.com/chart/infographics/docs/qr_codes

再来个简单的说明,生成QRCode真的很简单(以前也写过博客介绍过,其实我这次只是想贴个链接而已),上一次是: google QRCode,在之前还有一篇:QR CODE,看文中的链接已经变了,原文中说的:https://code.google.com/apis/chart/docs/gallery/qr_codes.html,已经是404了。。。

用法很简单:

1、接口地址:https://chart.googleapis.com/chart?

2、几个参数:

Parameter Required or Optional Description
cht=qr Required Specifies a QR code.
chs=<width>x<height> Required Image size.
chl=<data> Required The data to encode. Data can be digits (0-9), alphanumeric characters, binary bytes of data, or Kanji. You cannot mix data types within a QR code. The data must be UTF-8 URL-encoded. Note that URLs have a 2K maximum length, so if you want to encode more than 2K bytes (minus the other URL characters), you will have to send your data using POST.
choe=<output_encoding> Optional How to encode the data in the QR code. Here are the available values:
  • UTF-8 [Default]
  • Shift_JIS
  • ISO-8859-1
chld=<error_correction_level>|<margin> Optional
  • error_correction_level - QR codes support four levels of error correction to enable recovery of missing, misread, or obscured data. Greater redundancy is achieved at the cost of being able to store less data. See the appendix for details. Here are the supported values:
    • L - [Default] Allows recovery of up to 7% data loss
    • M - Allows recovery of up to 15% data loss
    • Q - Allows recovery of up to 25% data loss
    • H - Allows recovery of up to 30% data loss
  • margin - The width of the white border around the data portion of the code. This is in rows, not in pixels. (See below to learn what rows are in a QR code.) The default value is 4.

 是不是很简单?




本站采用创作共享版权协议, 要求署名、非商业和保持一致. 本站欢迎任何非商业应用的转载, 但须注明出自"易栈网-膘叔", 保留原始链接, 此外还必须标注原文标题和链接.

Tags: google, qrcode

« 上一篇 | 下一篇 »

只显示10条记录相关文章

Google菜市场(Android Market)上不去的解决方法 (浏览: 39311, 评论: 0)
强烈推荐google reader (浏览: 27468, 评论: 3)
Google Docs 可直接做 OCR 将图片转换为可编辑文本了 (浏览: 26331, 评论: 2)
GOOGLE短信提醒 (浏览: 25253, 评论: 0)
小心网站被Google点名为有恶意软件 (浏览: 23794, 评论: 0)
用 wpToGo 在 Android 上写 WordPress 博文 (浏览: 23230, 评论: 2)
啊兴的更新 (浏览: 22266, 评论: 2)
google docs 分享害死人啊 (浏览: 22195, 评论: 1)
机器退散 Google尝试新的Captcha方法 (浏览: 22117, 评论: 0)
Google Reader改版了? (浏览: 22016, 评论: 2)

发表评论

评论内容 (必填):