Description
- Configure user permissions to permit only chatting, with no access to Moments or visibility of your Moments.
Request URL
http://127.0.0.1:8888/api/
Request Method
Parameters
| Parameter Name | Required | Parameter Type | Description |
|---|
| type | Yes | int | API ID |
| userName | Yes | string | user`s wxid |
| contactTypes | Yes | list | List of permission changes |
权限标志
| 权限类型 | 枚举值 |
|---|
| Allow All Permissions | 0x800000 |
| Me can see him ? | 0x10000 |
| Him can see me ? | 0x100 |
Request Example
You have the option to prevent them from seeing your Moments.
{
"type": 41,
"userName": "wxid_xxxx",
"contactTypes": [
{
"typeFlag": 0x800000,
"isAllow": true
},
{
"typeFlag": 0x10000,
"isAllow": false
}
]
}
Return Example
{
"data": {
"status": 0,
"desc": "",
}
}
Return Parameter Description
| Parameter Name | Parameter Type | Description |
|---|
| error_code | int | Error code |
| description | string | Error Description |
| data | json | Business data |