5.2 修改用户信息.md 2.49 KB

请求参数说明:

参数 必选 类型 说明
appId true string 应用ID
uid true string 用户ID
nickName true string 用户昵称
gender true string 用户性别m:男、f:女、n:未知
extInfo true string 扩展信息(格式由对方自己组织,平台只负责存储和原样读取)
token true string 平台TOKEN
clientPlat true string 客户端平台[i:IOS客户端,a:Android客户端, w: 网页]
sign true string 签名

返回格式说明:

{
    "errorCode": "0",
    "errorMessage": "成功",
    "data": {
        "uid": "1456xx",
        "nickName": "Miss xxx",
        "gender": "n",
        "location": "BeiJing",
        "faceUrl": "http://yweb0.cnliveimg.com/images/headImg/2019/1119/1574147882189_small.jpg",
        "mobile": "158xxxx7170",
        "countryCode": "86",
        "email": "gxxxx@cnlive.com",
        "extInfo": "{\"userSign\":\"xxxxxxœ‹\"}",
        "platformId": "",
        "qqUid": "",
        "wxUid": "",
        "sinaUid": "",
        "renrenUid": "",
        "hUid": "",
        "isNewUser": false,
        "bigFaceUrl": "http://yweb0.cnliveimg.com/images/headImg/2019/1119/1574147882189.jpg"
    }
}
{
    "errorCode":"1",   
    "errorMessage":"请求参数无效"  
}
{
    "errorCode":"41049",   
    "errorMessage":"昵称不能含有表情符"  
}
{
    "errorCode":"41012",   
    "errorMessage":"昵称不能超过15个汉字"  
}
{
    "errorCode":"41013",   
    "errorMessage":"性别无效"  
}
{
    "errorCode": "8",
    "errorMessage": "token已失效"
}
{
    "errorCode": "9",
    "errorMessage": "token验证失败"
}
{
    "errorCode":"42004",   
    "errorMessage":"操作失败"  
}
{
    "errorCode":"40005",   
    "errorMessage":"其他错误"  
}
{
    "errorCode":"42001",   
    "errorMessage":"未发现此用户"  
}