~~~[api]
post:/v4/Yunxin/createUserId
*string:uid=kc6e1k3dd7k9e3fk77dakebcdkabe4ka4b1zd5f2cgxrxxebrlm#用户uid
*string:login_token=xiaoqiang123#登录token
*string:name=张三#昵称
*string:icon=http://wx.qlogo.cn/mmopen/vi\_32/PiajxSqBRaEJuNhGYZIuzQLQngXUDDykFjOvOFsfmfRNeCHKbFX5GicGd2vusINjbibE5oDj0vhGy2IHYCPNBufIw/132#头像
int:sex=1#性别
<<<
success
{
"code": 100000,
"msg": "",
"data": {
"uid": "4",
"token": "011ecee7d295c066ae68d4396215c3d0", // 云信token
"accid": "4", // 云信账号
"name": "jfeng2",
"icon": "http://wx.qlogo.cn/mmopen/vi\_32/PiajxSqBRaEJuNhGYZIuzQLQngXUDDykFjOvOFsfmfRNeCHKbFX5GicGd2vusINjbibE5oDj0vhGy2IHYCPNBufIw/132", //云信用户头像
"sex": "1",
"appKey": "8cb6bf04368468baeaf3386cd6bce6d5" // 云信appkey
"teamInfos": // 群信息,没有为[ ]
[
{
"owner":"t2", // 群主用户帐号
"tname":"test1", // 群名称
"tid":3620, // 群id
"custom":"" // 扩展属性
},
{
"owner":"t1",
"tname":"test2",
"tid":3622,
"custom":""
}
]
}
}
<<<
error
{
"code": 400001,
"msg": "缺少uid参数",
"data": []
}
~~~
错误状态码说明
| code | 说明 |
| --- | --- |
| 400001 | 缺少参数 |
| 400002 | 创建云信id失败 |