contacts/set-friend-privicy

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

  • POST

Parameters

Parameter NameRequiredParameter TypeDescription
typeYesintAPI ID
userNameYesstringuser`s wxid
contactTypesYeslistList of permission changes

权限标志

权限类型枚举值
Allow All Permissions0x800000
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 NameParameter TypeDescription
error_codeintError code
descriptionstringError Description
datajsonBusiness data

Remark