接口地址

https://api.vvhan.com/api/qr

返回格式

IMG

请求方式:

GET

请求示例:

https://api.vvhan.com/api/qr?text=内容

 

参数说明

名称 必填 类型 说明
text string 输入内容

返回数据

二维码图片一张

调用实例

<img src="https://api.vvhan.com/api/qr?text=二维码内容" alt="奇讯API">

示例代码

<?php
$text = $_GET['text']; $src = "https://api.vvhan.com/api/qr?text=" . $text; header('Content-type: image/png'); $res = imagecreatefromstring(file_get_contents($src)); imagepng($res); imagedestroy($res);
?>