Skip to main content
Version: 5.7.0

ReadFriendEntity

Returns a particular entity of a particular friend.

ServiceOperation
friendREAD_FRIEND_ENTITY

Method Parameters

ParameterDescription
friendIdProfile Id of friend who owns entity.
entityIdId of entity to retrieve.

Usage

http://localhost:3000
string friendId = "profileId";
string entityId = "entityId";
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.ReadFriendEntity(friendId, entityId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"entityId": "a3abc2ad-13ee-47a8-86a5-9c0a83f90314",
"entityType": "PlayerData",
"version": 1,
"data": {
"ACCOUNT_CREATION_TIME": 1353011574029,
"ALL_TIME_SCORE": 1090560,
"FIRST_PLAY_TIME": 1372781536842
},
"acl": {
"other": 1
},
"createdAt": 1372901559406,
"updatedAt": 1372901559406
}
}