接口文档
输入电话号码(5-13位纯数字),返回微信扫码一键拨号小程序码图片,永久有效,免费调用,限10次/10分钟。
原创
站长工具
文中拨号
接口反馈
请求示例
https://cloud1-d9gu39mtc91d05b86-1435247398.ap-shanghai.app.tcloudbase.com/getWxaCode?phone=10086
返回示例
{
"code": 0,
"msg": "生成成功",
"fileID": "cloud://cloud1-d9gu39mtc91d05b86-1435247398.636c-cloud1-d9gu39mtc91d05b86-1435247398-1333333333/qrcache/10086.jpg",
"tempFileURL": "https://636c-cloud1-d9gu39mtc91d05b86-1435247398-1333333333.tcb.qcloud.la/qrcache/10086.jpg",
"cached": false
}
示例代码
curl -X GET 'https://cloud1-d9gu39mtc91d05b86-1435247398.ap-shanghai.app.tcloudbase.com/getWxaCode?phone=10086'
// JavaScript
fetch('https://cloud1-d9gu39mtc91d05b86-1435247398.ap-shanghai.app.tcloudbase.com/getWxaCode?phone=10086')
.then(res => res.json())
.then(data => console.log(data.tempFileURL));
# Python
import requests
url = "https://cloud1-d9gu39mtc91d05b86-1435247398.ap-shanghai.app.tcloudbase.com/getWxaCode?phone=10086"
res = requests.get(url)
print(res.json()["tempFileURL"])
<?php
$phone = "10086";
$url = "https://cloud1-d9gu39mtc91d05b86-1435247398.ap-shanghai.app.tcloudbase.com/getWxaCode?phone=$phone";
$res = json_decode(file_get_contents($url), true);
echo $res["tempFileURL"];
?>
# cURL
curl -s "https://cloud1-d9gu39mtc91d05b86-1435247398.ap-shanghai.app.tcloudbase.com/getWxaCode?phone=10086"
部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口。
https://api.kuleu.com/doc/dial_wxcode.html
转载时请保存本 API 链接,完整转载请注明来自 免费API。
注意保护眼睛
来自 文中拨号 贡献的接口
了解作者