Skip to main content
Version: 5.7.0

GetUsersOnlineStatus

Get the online status for a list of users based on profile ID.

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

ServiceOperation
friendGET_USERS_ONLINE_STATUS

Method Parameters

ParameterDescription
profileIdsCollection of profile IDs.

Usage

http://localhost:3000
string[] profileIds = { "profileId1", "profileId2" };
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.GetUsersOnlineStatus(profileIds, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"onlineStatus": [
{
"isOnline": false,
"profileId": "d841da61-a49c-43f4-9937-a97339ccf0ec",
"userValid": true
}
]
}
}