|

楼主 |
发表于 2024-9-12 14:46:13
|
显示全部楼层
云南省西双版纳傣族自治州
文档(docs)
content-type:"application/json"
baseUrl
https://t.fc88.one/clientapi
#请求头
header
clientid: "e5cd7e4891bf95d1d19206ce24a7b32e"
Authorization: "Bearer"+ token
//token获取地址
https://t.fc88.one/t/#/pages/openapi/api
注意clientid用本文档中的参数
#api
格式:baseUrl+api
参数:json
[POST]推送一个号码
/apiV2/addPhone
参数:
{"phoneNumber":"13682858298","type":"1"}
说明:
String phoneNumber;//手机号码
String type;//字符串"1"
返回:
{
"code": 200,
"msg": "操作成功",
"data": {
"createDept": 0,
"createBy": 1,
"createTime": "2024-08-15 22:18:50",
"updateBy": 1,
"updateTime": "2024-08-15 22:18:50",
"smsDtId": "1824088361838542849",
"phoneNumber": "13682858298",
"status": "0",
"remark": null,
"smsCode": null,
"content": null,
"step": 2,
"count": null,
"type": "1",
"userId": 1,
"deptId": null
}
}
[GET]查询号码状态
/apiV2/refleshitem?smsDtId=1811956314277167106
示例: http://baseUrl/apiV2/refleshitem?smsDtId=1811956314277167106
#请不要频繁获取,会触发防火墙风控。建议5秒左右获取一次
参数:
smsDtId: 1811956314277167106
说明:上一个接口返回的smsDtId
返回:
{
"code": 200,
"msg": "",
"data": "PONG"
}
data返回值说明:
PONG/等待处理
codebegin/已经提交注册
codesucess/注册成功
codesmsfail/不接受号码
codenoway/禁止注册
codetimeout/注册超时
coderetry/重新尝试注册
codeqrcode/二维码辅助严重
codeface/人脸辅助验证
codefull/手机号注册满额
codesmserror/短信错误
codesmsnot/未收到短信
codeuser/账号密码设置
codeerror/注册失败
[POST]号码主动重新注册
/apiV2/retryPhone
参数:
{"phoneNumber":"13682858298","type":"1","smsDtId":"1822681877216890881"}
说明:
重试的场景为:号码已经提交过。并且已经有结果(建议重试条件设置为“未收到短信”)
smsDtId为接口一返回的参数
[GET]主动放弃号码注册
/apiV2/delSmsPhone
示例:http://baseUrl+/apiV2/delSmsPhone?id=1823004670311669761
参数:
id: 1823004670311669761
注意:该id=smsDtId,请注意命名规则:id |
|