Skip to main content
Version: 5.7.0

FindUserByUniversalId

Retrieves user information for partially matched universal IDs. Optional parameter: maxResults.

caution

This API is deprecated and will be removed in the future. Please use the FindUserByExactUniversalId API instead.

ServiceOperation
friendFIND_PLAYER_BY_UNIVERSAL_ID

Method Parameters

ParameterDescription
searchTextThe substring to search for. Minimum length of 3 characters.
maxResultsMaximum number of results to return. If there are more the message.

Usage

http://localhost:3000
string searchText = "someText";
int maxResults = 5;

SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.FriendService.FindUserByUniversalId(searchText, maxResults, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"matchedCount": 1,
"matches": [
{
"profileId": "111-222-333",
"profileName": "UserA",
"summaryFriendData": null,
"pictureUrl": null
}
]
}
}