Skip to main content
Version: 5.7.0

UpdateSummaryFriendData

Updates the "friend summary data" associated with the logged in user.

Some operations will return this summary data. For instance the social leaderboards will return the player's score in the leaderboard along with the friend summary data. Generally this data is used to provide a quick overview of the user without requiring a separate API call to read their public stats or entity data.

The friend summary data can also be requested with the GetSummaryDataForProfileId api call.

ServiceOperation
playerStateUPDATE_SUMMARY

Method Parameters

ParameterDescription
summaryFriendDataA JSON string defining the summary data. For example { "xp":123, "level":12, "highScore":45123 }

Usage

http://localhost:3000
string summaryFriendData = "{\"xp\":12,\"attributeName\":\"value\"}";
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.PlayerStateService.UpdateSummaryFriendData(summaryFriendData, successCallback, failureCallback);
JSON Response
{
"status":200,
"data": null
}