友情链接 geweapi.com 点击即可访问
更新个人资料
请求URL:
- http://域名地址/api/personal/updateprofile
请求方式:
- POST
请求头:
-
Content-Type:application/json
-
X-GEWE-TOKEN: 后台获取
参数:
参数名 | 必填 | 数据类型 | 说明 |
---|---|---|---|
appid | 是 | string | 设备id |
city | 是 | string | 城市 |
country | 是 | string | 国家 |
nick_name | 是 | string | 昵称 |
province | 是 | string | 省份 |
sex | 是 | number | 性别 1:男 2:女 |
signature | 是 | string | 个性签名 |
返回数据:
参数名 | 数据类型 | 说明 |
---|---|---|
ret | number | 0:成功 |
msg | string | 反馈信息 |
data | object |
请求参数示例:
{
"appid": "wx_nScLwnZhfNmlQlL0npc71",
"city": "Yamian",
"country": "FR",
"nick_name": "xahya",
"province": "Yamian",
"sex": 1,
"signature": "........."
}
成功返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"ret": 0,
"oplogRet": {
"count": 1,
"ret": "AA=="
}
}
}
错误返回示例:
{
"ret": -1,
"msg_err": "[wx_bpPSNW0kK0xYSM6ldubd]设备不存在或已离线"
}
上传头像
小提示:
- 注意头像大小是200px * 200px
- file_link 图片地址,仅支持url
请求URL:
- http://域名地址/api/personal/uploadhdheadimg
请求方式:
- POST
请求头:
-
Content-Type:application/json
-
X-GEWE-TOKEN: 后台获取
参数:
参数名 | 必填 | 数据类型 | 说明 |
---|---|---|---|
appid | 是 | string | 设备id |
base64 | 是 | string | 头像的base64 |
config | 是 | object |
返回数据:
参数名 | 数据类型 | 说明 |
---|---|---|
ret | number | 0:成功 |
msg | string | 反馈信息 |
data | object | |
data.BigHeadImgUrl | string | 大图 |
data.SmallHeadImgUrl | string | 小图 |
请求参数示例:
{
"appid": "wx_nScLwnZhfNmlQlL0npc71",
"base64": "data:image/png;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAMCAgMCAgMDAwAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIsdZPQTzwup5KiA8pDHdxnyyg8uMVNxqMMZLVVMruzAXveSfzJQXu2v4It5t2XRvtOiq6koZMYrbmz7PFj197qfogzD2q8G6pkfDVa/1cxkeBz0Fqjz9C9w/koGbG0vBXtJs9DEbPpWkqKyMD/jK1glkJHnk9k2L3xQRwMDImNjYOgawYASJiRJWStp6OeVxw1jC4n4AKR843EVdxfN79b1jXc7JLpOWk+nMR/RUyL9+FpuA/SHE5bqBz+WnvFPJSPbnue7f1CQN4qqBAQEBAQEBAQEBAQEBRIoncC7PiDKJmW845nEHuMnouE69ybVnshuun4YvPdKjrfb5rhKI4GFzicdBnHzXHcbiZORfUQ3F88YYXB05pCG0N9rLiSpPc+Q+S9D6f0iuGO63tz/I5dsszr0qMDyXUVjUaavymCqVIoCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg8XVt1FmsFdV5wWREj54Wv5t/jxTZm8LD82atGI9VVPraqWeVxfJI4uJK8iz3QaH6yuqLlWT1dVI6agICAgICAgICAgIP/2Q==",
"config": {
"thumbnail": true
},
"file_link": "https://scrm-1308498490.cos.ap-shanghai.myqcloud.com/pkg/WX20230630-094127%402x.png?q-sign-algorithm=sha1&q-ak=AKIDmOkqfDUUDfqjMincBSSAbleGaeQv96mB&q-sign-time=1688089671;1688096871&q-key-time=1688089671;1688096871&q-header-list=&q-url-param-list=&q-signature=611d21d961662ed9a347ac347464836c562e383c"
}
成功返回示例:
{
"ret": 0,
"msg": "success",
"data": {
"baseResponse": {
"ret": 0,
"errMsg": {}
},
"TotalLen": 126805,
"StartPos": 126805,
"BigHeadImgUrl": "http://wx.qlogo.cn/mmhead/ver_1/uoEKnTZWId3HyYFUfibrz9fUCicRUws4ibIyaZ9H5KbDyC7dsXFWYibibn6Ilr3xeqpxAiclO9npAIvKFOLSNic0J5fyAQgj9iabUL6aNbtpHPiaUXb4/0",
"SmallHeadImgUrl": "http://wx.qlogo.cn/mmhead/ver_1/uoEKnTZWId3HyYFUfibrz9fUCicRUws4ibIyaZ9H5KbDyC7dsXFWYibibn6Ilr3xeqpxAiclO9npAIvKFOLSNic0J5fyAQgj9iabUL6aNbtpHPiaUXb4/132"
}
}
错误返回示例:
{
"ret": -1,
"msg_err": "[wx_bpPSNW0kK0xYSM6ldubd]设备不存在或已离线"
}