Description
- Initiate a friend request.
- You have the option to personalize your method of adding friends, but it's advisable to align it with the v3 acquisition channels to avoid potential risk prompts for the other party.
Request URL
http://127.0.0.1:8888/api/
Request Method
Parameters
Parameter Name | Required | Parameter Type | Description |
---|
type | Yes | int | API ID |
encryptUserName | Yes | string | User v3 data |
message | No | string | Greeting message |
ticket | Yes | string | User`s v4 data |
verifyType | No | int | Default is 6, the method of addition |
chatroomUserName | No | string | This parameter only takes effect when adding to a group chat |
添加方式
Method | Enum |
---|
Search QQ number | 1 |
Search WeChat ID | 3 |
Friend verification message | 6 |
Group chat | 14 |
Search phone number | 15 |
People nearby | 18 |
Shake Shake | 24 |
Request Example
{
"type": 10033,
"encryptUserName": "v3_xxxx",
"message": "Hello, I have a question to ask.",
"ticket": "v4_xxxx",
"verifyType": 6
}
{
"type": 10033,
"encryptUserName": "wxid_xxxx",
"ticket": "v4_xxxx",
"chatroomUserName": "xxx@chatroom",
"verifyType": 14,
}
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 |