Skip to main content

add_friend_response

Description

  • Accept or reject a friend request sent by fromUserID to toUserID.

Request Method

  • POST

Request URL

  • {API_ADDRESS}/friend/add_friend_response
Header NameExample ValueRequiredTypeDescription
operationID1646445464564RequiredstringUsed for global traceability, suggested as a unique timestamp per request
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameters Example

{
"fromUserID": "11111111",
"toUserID": "11111112",
"handleResult": 1,
"handleMsg": "agree"
}
Field NameRequiredTypeDescription
fromUserIDRequiredstringRequester ID
toUserIDRequiredstringReceiver ID
handleResultRequiredintProcessing result: 1 for accept; -1 for reject
handleMsgRequiredstringProcessing message

Success Response Example

{
"errCode": 0,
"errMsg": "",
"errDlt": ""
}

Success Response Parameter Description

ParameterTypeDescription
errCodeintError code, 0 indicates success
errMsgstringBrief error message, empty if successful
errDltstringDetailed error information, empty if successful

Failure Response Example

{
"errCode": 1004,
"errMsg": "RecordNotFoundError",
"errDlt": ": [1004]RecordNotFoundError"
}

Failure Response Parameter Description

ParameterTypeDescription
errCodeintError code; refer to global error code documentation
errMsgstringBrief error message
errDltstringDetailed error information