add_friend_response
Description
- Accept or reject a friend request sent by
fromUserID
totoUserID
.
Request Method
POST
Request URL
{API_ADDRESS}/friend/add_friend_response
Header
Header Name | Example Value | Required | Type | Description |
---|---|---|---|---|
operationID | 1646445464564 | Required | string | Used for global traceability, suggested as a unique timestamp per request |
token | eyJhbxxxx3Xs | Required | string | Admin token |
Request Parameters Example
{
"fromUserID": "11111111",
"toUserID": "11111112",
"handleResult": 1,
"handleMsg": "agree"
}
Field Name | Required | Type | Description |
---|---|---|---|
fromUserID | Required | string | Requester ID |
toUserID | Required | string | Receiver ID |
handleResult | Required | int | Processing result: 1 for accept; -1 for reject |
handleMsg | Required | string | Processing message |
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 |