GetSummaryDataForProfileId
Retrieves the summary information for the specified user profile ID.
Does not require the calling user to be a friend of the other user.
Service | Operation |
---|---|
friend | GET_SUMMARY_DATA_FOR_PROFILE_ID |
Method Parameters
Parameter | Description |
---|---|
profileId | Profile (user) ID. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string profileId = "profileId";
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.GetSummaryDataForProfileId(profileId, successCallback, failureCallback);
const char *profileId = "profileId";
_bc->getFriendService()->getSummaryDataForProfileId(profileId, this);
NSString *profileId = @"profileId";
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[[_bc friendService] getSummaryDataForProfileId:profileId
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil];
String profileId = "profileId";
this; // implements IServerCallback
_bc.getFriendService().getSummaryDataForProfileId(profileId, this);
public void serverCallback(ServiceName serviceName, ServiceOperation serviceOperation, JSONObject jsonData)
{
System.out.print(String.format("Success | %s", jsonData.toString()));
}
public void serverError(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
{
System.out.print(String.format("Failed | %d %d %s", statusCode, reasonCode, jsonError.toString()));
}
var profileId = "profileId";
_bc.friend.getSummaryDataForProfileId(profileId, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
var profileId = "profileId";
ServerResponse result = await _bc.friendService.getSummaryDataForProfileId(profileId:profileId);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
var profileId = "profileId";
var friendProxy = bridge.getFriendServiceProxy();
var postResult = friendProxy.getSummaryDataForProfileId(profileId);
if (postResult.status == 200) {
// Success!
}
{
"service": "friend",
"operation": "GET_SUMMARY_DATA_FOR_PROFILE_ID",
"data": {
"profileId": "profileId"
}
}
JSON Response
{
"status": 200,
"data": {
"pictureUrl": "https://scontent.xx.fbcdn.net/hprofile-frc1/v/t1.0-1/p50x50/1066&oe=57812708",
"email": null,
"profileId": "2d77sf92-2583-4ad2-ba2c-3db942a34dee",
"playerSummaryData": {
"LEVEL": 0
},
"profileName": "Test User"
}
}