Skip to main content
Version: 6.1.0

MergeNintendoIdentity

Merge the profile associated with the provided Nintendo credentials with the current profile.

ServiceOperation
identityMERGE

Method Parameters​

ParameterDescription
nintendoAccountIdThe Nintendo Network Services Account (NSA) ID for the user
nintendoAuthTokenAn NSA ID token retrieved via the NintendoSDK

Usage​

http://localhost:3000
string nintendoAccountId = "nsaid";  // Network Services Account ID
string nintendoAuthToken = "nsaToken";
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.IdentityService.MergeNintendoIdentity(
nintendoAccountId, nintendoAuthToken, successCallback, failureCallback);
JSON Response
{
"data": {
"profileId": "f94f7e2d-3cdd-4fd6-9c28-392f7875e9df"
},
"status": 200
}
Common Error Code

Status Codes​

CodeNameDescription
40211DUPLICATE_IDENTITY_TYPEReturned when trying to attach an identity type that already exists for that profile. For instance you can have only one Twitter identity for a profile.