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.
Service | Operation |
---|---|
friend | FIND_USERS_BY_EXACT_NAME |
Method Parameters
Parameter | Description |
---|---|
searchText | The exact string to search for. |
maxResults | Maximum number of results to return. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var searchText = "someText";
var maxResults = 5;
var friendProxy = bridge.getFriendServiceProxy();
var postResult = friendProxy.findUsersByExactName(searchText, maxResults);
if (postResult.status == 200) {
// Success!
}
{
"service": "friend",
"operation": "FIND_USERS_BY_EXACT_NAME",
"data": {
"searchText": "someText",
"maxResults": 5
}
}
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
}
}