import_friend
Description
- Establishes a friendship between a specified user (
ownerUserID
) and multiple users (friendUserIDs
).
Request Method
POST
Request URL
{API_ADDRESS}/friend/import_friend
Header
Header Name | Example Value | Required | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | Used for global traceability; unique per request, suggested as a timestamp |
token | eyJhbxxxx3Xs | Required | string | Admin token |
Request Parameters Example
{
"ownerUserID": "2778222451",
"friendUserIDs": ["4776986466"]
}
Field Name | Required | Type | Description |
---|---|---|---|
ownerUserID | Required | string | User ID initiating the friendship |
friendUserIDs | Required | array | List of friend user IDs to be added |
Success Response Example
{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}
Success Response Parameter Description
Parameter | Type | Description |
---|---|---|
errCode | int | Error code, 0 indicates success |
errMsg | string | Brief error message, empty if successful |
errDlt | string | Detailed error information, empty if successful |
Failure Response Example
{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}
Failure Response Parameter Description
Parameter | Type | Description |
---|---|---|
errCode | int | Error code; refer to global error code documentation |
errMsg | string | Brief error message |
errDlt | string | Detailed error information |