Skip to main content
Version: 5.7.0

GetProfileInfoForCredential

Retrieves profile information for the specified user.

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

ServiceOperation
friendGET_PROFILE_INFO_FOR_CREDENTIAL

Method Parameters

ParameterDescription
externalIdExternal identifier.
authenticationTypeAssociated authentication type. Full list of types can be found here.

Usage

http://localhost:3000
string externalId = "profileId";
AuthenticationType authenticationType = AuthenticationType.Facebook;
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.Friend.GetProfileInfoForCredential(externalId, authenticationType, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"playerName": "",
"email": null,
"profileId": "bb05182d-ff0c-4740-ae65-482751e74949",
"summaryFriendData": {
"LEVEL": 7
}
}
}