contacts/add-friend-(wxid)

Description

  • Adding friends through wxid is restricted to individuals with whom you share a connection, either as previous contacts or members of shared group chats.

Request URL

  • http://127.0.0.1:8888/api/

Request Method

  • POST

Parameters

Parameter NameRequiredParameter TypeDescription
typeYesintAPI ID
userNameYesstringwxid
messageNostringGreeting message

Request Example

 {
  "type": 10034,
  "userName": "wxid_xxxx",
  "message": "Hello, I have a question to ask."
 } 

Return Example

  {
    "data": {
      "status": 0,
      "desc": "",
    }
  }

Return Parameter Description

Parameter NameParameter TypeDescription
error_codeintError code
descriptionstringError Description
datajsonBusiness data

Remark