Skip to main content
Version: 5.7.0

FindUsersByExactName

Retrieves profile information for the exact matches of the specified text.

If there are more results than the maximum requested, then maximum requested results are returned.

Does not require the calling user to be a friend of the retrieved users.

ServiceOperation
friendFIND_USERS_BY_EXACT_NAME

Method Parameters

ParameterDescription
searchTextThe exact string to search for.
maxResultsMaximum number of results to return.

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.FindUsersByExactName(searchText, maxResults, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"matches": [
{
"profileId": "4f2edc69-b3c3-458b-8b4b-6bbd7259b55f",
"profileName": "Test2",
"playerSummaryData": null,
"pictureUrl": "http://somesite.com/test/picture.jpg"
}
],
"matchedCount": 1
}
}