彩色二维码生成
 返回
会员免费

 隐藏内容,请评论后查看

服务级错误码参照:

错误码 说明
201 传递参数不能为空
202 二维码图片生成异常
203 传递参数格式不正确

系统级错误码参照:

错误码说明
10011密钥错误或不存在
10012通讯密钥已被封禁
10013通讯密钥申请注销
10014地区已被系统屏蔽
10018请求频率超过限制
10019请求被限制或封禁
10021接口异常或者停用
10022账户密钥额度不足
10023请求权限暂未开启
10024请求的地区被屏蔽
10025请求权限已被拉黑
10026请求签名校验错误
10027非白名单请求域名
10028非白名单的IP地址

实例演示代码:

<?php
// API 接口调用示例

// 接口地址
$url = 'https://api.sumt.cn/api/qrcode.php';

// 请求参数
$data = [
    'token' => '通讯密钥',
    'text' => 'https://www.baidu.com',
    'level' => 'L',
    'margin' => '1',
    'size' => '200',
    'bgcolor' => 'F5DEB3',
    'color' => '00CED1',
    'wkcolor' => '6495ED',
    'nkcolor' => 'DB7093',
];

// 发送请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

$result = curl_exec($ch);
curl_close($ch);

// 输出结果
echo $result;
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>API接口调用演示</title>
        <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    </head>
    <body>
        <div id="result"></div>
        <script>
            // 接口地址
            const api = "https://api.sumt.cn/api/qrcode.php";
            
            // 请求参数
            const params = {
                token: "通讯密钥",
                text: "https://www.baidu.com",
                level: "L",
                margin: "1",
                size: "200",
                bgcolor: "F5DEB3",
                color: "00CED1",
                wkcolor: "6495ED",
                nkcolor: "DB7093"    
            };
            
            // 发送请求
            $.ajax({
                url: api,
                type: "POST",
                data: params,
                success: function(res) {
                    $("#result").text(res);
                    console.log("请求成功:", res);
                },
                error: function(err) {
                    $("#result").text(res);
                    console.log("请求失败");
                }
            });
        </script>
    </body>
</html>
// API 接口调用示例

// 接口地址
const apiUrl = "https://api.sumt.cn/api/qrcode.php";

// 请求参数
const params = {
    token: "通讯密钥",
    text: "https://www.baidu.com",
    level: "L",
    margin: "1",
    size: "200",
    bgcolor: "F5DEB3",
    color: "00CED1",
    wkcolor: "6495ED",
    nkcolor: "DB7093",
};

// 发送请求
$.ajax({
    url: apiUrl,
    type: "POST",
    data: params,
    dataType: "json",
    success: function(res) {
        console.log("请求成功:", res);
    },
    error: function(err) {
        console.log("请求失败");
    }
});
项目信息
1点/¥0.001元/次 单次对接价格
尚未申请通讯密钥 通讯密钥凭证
2018-11-16 07:18:22 项目创建时间
2021-08-30 22:51:42 最后更新时间
 自2018年11月16日,上线以来总累计提供数 254269 次API接口调用服务。其中,昨日调用数 8 次,今日调用数 0 次。
使用须知

1.本平台提供的所有 API 接口,仅限个人学习、技术研究使用,禁止用于任何商业盈利、经营性项目。

2.禁止利用本接口从事违反《中华人民共和国网络安全法》《互联网信息服务管理办法》等相关法律法规的活动。

3.使用者需自行承担因使用本接口产生的一切法律责任,平台保留对违规使用账号的封禁、限制访问等权利。

4.本接口的技术文档、示例代码等内容的知识产权归平台所有,未经授权不得擅自篡改、传播、售卖。

5.平台有权根据运营情况调整、暂停或终止接口服务,无需提前通知用户。

登录后可发表评论
发表评论 请勿发表违规内容,违者封禁账号
全部评论
头像
打卡成功,现在时间:2026年4月2日17点48分8秒
登录后可回复评论
回复评论
头像
打卡成功,现在时间:2026年3月30日16点12分13秒
登录后可回复评论
回复评论
头像
6
登录后可回复评论
回复评论
头像
6
登录后可回复评论
回复评论
头像
打卡成功,现在时间:2024年4月16日8点18分16秒
登录后可回复评论
回复评论
头像
做事躲边边,吃饭垒尖尖
登录后可回复评论
回复评论
头像
打卡成功,现在时间:2023年12月7日6点16分34秒
登录后可回复评论
回复评论
头像
每天坚持打卡哦!
登录后可回复评论
回复评论