Skip to main content
Version: 5.7.0

AttachNintendoIdentity

Attach the user's Nintendo credentials to the current profile.

ServiceOperation
identityATTACH

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.AttachNintendoIdentity(
nintendoAccountId, nintendoAuthToken, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": null
}
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 Email identity for a profile.
40212MERGE_PROFILESReturned when trying to attach an identity type that would result in two profiles being merged into one (for instance an anonymous account and a Email account).