二维码解析解码器
 返回
会员免费

 隐藏内容,请登录后查看

服务级错误码参照:

错误码 说明
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/qrencode.php';

// 请求参数
$data = [
    'token' => '通讯密钥',
    'url' => 'https://tva3.sinaimg.cn/large/007X8olVly1g822adxbc0j308c08c0st.jpg',
];

// 发送请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url . '?' . http_build_query($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/qrencode.php";
            
            // 请求参数
            const params = {
                token: "通讯密钥",
                url: "https://tva3.sinaimg.cn/large/007X8olVly1g822adxbc0j308c08c0st.jpg"    
            };
            
            // 发送请求
            $.ajax({
                url: api,
                type: "GET",
                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/qrencode.php";

// 请求参数
const params = {
    token: "通讯密钥",
    url: "https://tva3.sinaimg.cn/large/007X8olVly1g822adxbc0j308c08c0st.jpg",
};

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

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

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

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

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

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

登录后可发表评论
发表评论 请勿发表违规内容,违者封禁账号
全部评论
暂无评论,快来抢沙发!