Skip to main content
Version: 5.7.0

GetProfileInfoForExternalAuthIdIfExists

Retrieves profile information for the specified user. Silently fails, if profile does not exist, just returns null and success, instead of an error.

ServiceOperation
friendGET_PROFILE_INFO_FOR_EXTERNAL_AUTH_ID_IF_EXISTS

Method Parameters

ParameterDescription
externalIdThe external id.
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.GetProfileInfoForExternalAuthIdIfExists(externalId, externalAuthType, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {}
}