Skip to main content

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 NameExample ValueRequiredTypeDescription
operationID1646445464564RequiredstringUsed for global traceability; unique per request, suggested as a timestamp
tokeneyJhbxxxx3XsRequiredstringAdmin token

Request Parameters Example

{
"ownerUserID": "2778222451",
"friendUserIDs": ["4776986466"]
}
Field NameRequiredTypeDescription
ownerUserIDRequiredstringUser ID initiating the friendship
friendUserIDsRequiredarrayList of friend user IDs to be added

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