二维码生成API接口


点击链接自动复制

接口地址:

http://api.xsdggw.cn/api/ewm-1.php?text=二维码内容

返回格式:

二维码图片

请求方式:

GET

请求示例:

<img src="http://api.xsdggw.cn/api/ewm-1.php?text=二维码内容" alt="晓盒子API">

演示效果

二维码一张 自行操作

调用代码

<img src="http://api.xsdggw.cn/api/ewm-1.php?text=二维码内容" alt="晓盒子API">

调用代码

<?php
$text= $_GET['text'];
$src = "http://api.xsdggw.cn/api/ewm-1.php?text=".$text;
header('Content-type: image/png');
$res = imagecreatefromstring(file_get_contents($src));
imagepng($res);
imagedestroy($res);
?>