Skip to main content
Version: 5.7.0

GetProfileInfoForExternalAuthId

Retrieves profile information for the specified external auth user.

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

ServiceOperation
friendGET_PROFILE_INFO_FOR_EXTERNAL_AUTH_ID

Method Parameters

ParameterDescription
externalIdExternal identifier
externalAuthTypeThe name of the custom authentication type (linked to a cloud script that performs authentication.) Configured via the Design | Authentication | External page of the Design Portal.

Usage

http://localhost:3000
string externalId = "username";
string externalAuthType = "OAuth";
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.GetProfileInfoForExternalAuthId(externalId, externalAuthType, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"playerName": "",
"email": null,
"playerId": "bb05182d-ff0c-4740-ae65-482751e74949",
"playerSummaryData": {
"LEVEL": 7
}
}
}