# 机器人重新验证手机号
登录一年的机器人,重新验证手机号
- 获取验证码
- 提交验证码
请求方式:POST
请求地址:https://$basehost/gateway/qopen/RobotRecheckMobile
body参数:
{
"robot_id": "机器人id",
"action": 1,
"sms": "654321"
}
字段 | 类型 | 必填 | 说明 |
---|---|---|---|
robot_id | string | 是 | 机器人编号 |
action | int | 否 | 默认action=0为获取验证码,提交验证码action=1 |
sms | string | 否 | 验证码,当action=1时生效 |
返回值:
{
"data": {},
"errcode": 0,
"errmsg": ""
}
处理结果,异步返回值 encoding_content解密后的结构:
{
"event_type": 40036,
"data": {},
"err_code": 0,
"err_msg": "",
"hint": "xxxxxxx",
"robot_id": "机器人id",
"serial_no": ""
}
返回说明
字段 | 类型 | 说明 |
---|---|---|
errcode | int | 状态码,0为正常,非0代表错误 |
errmsg | string | 错误信息 |
event_type | int | 事件类型,40036 |
serial_no | string | 操作序列号 |
data | object | 返回数据 |
完整请求示例:
curl -X POST \
https://$basehost/gateway/qopen/RobotRecheckMobile \
-H 'Content-Type: application/json; charset=UTF-8' \
-H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
-d '{
"robot_id": "机器人id",
"action":1,
"sms":"654321"
}'
← 机器人获取安全验证码 修改机器人姓名 →