问题描述
我需要通过传递链接网址来生成QR码扫描程序。 尝试使用googleAPIS,但已过时(服务已在2019年停止)。 还有其他方法吗?还有其他类似api的API可以使用吗? 我尝试了另外一个API(二维代码Api),但没有成功。 正在共享与此API相关的一些链接。
{{1}}
http://goqr.me/api/doc/create-qr-code/(创建二维码API)
https://codepen.io/MathewSachin/pen/LxPzob(参考运行)
https://developers.google.com/chart/infographics/docs/qr_codes(Google Api)
解决方法
goqr.me API运行正常。
您是否以编码形式传递了URL? 请以编码形式传递URL。
<img src="https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Fgoogle.com&size=300x300">
您也可以https://qrickit.com/qrickit_apps/qrickit_api.php
<img src="https://qrickit.com/api/qr.php?d=http://google.com&addtext=Hello+World&txtcolor=442EFF&fgdcolor=76103C
&bgdcolor=C0F912&qrsize=510&t=p&e=m">