MergePlaystation5Identity
Merge the profile associated with the provided Playstation5 credentials with the current profile.
NOTE: If using the BrainCloudWrapper, once the merge is complete you should call SetStoredProfileId
in the BrainCloudWrapper with the profileId returned in the Merge call.
Service | Operation |
---|---|
identity | MERGE |
Method Parameters
Parameter | Description |
---|---|
accountId | The playstation5 id of the user |
authToken | The validated token from the Playstation5 SDK (that will be further validated when sent to the brainCloud service) |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string accountId = "somePlaystationNetworkId";
string authToken = "somePlaystationNetworkAuthToken";
_bc.IdentityService.MergePlaystation5Identity(
accountId,
authToken,
SuccessCallback, FailureCallback);
const char * accountId = "somePlaystationNetworkId";
const char * authToken = "somePlaystationNetworkAuthToken";
_bc->getIdentityService()->mergePlaystation5Identity(
accountId, authToken, this);
// N/A
// N/A
// N/A
// N/A
// N/A
// N/A
JSON Response
{
"data": {
"profileId": "f94f7e2d-3cdd-4fd6-9c28-392f7875e9df"
},
"status": 200
}
Common Error Code
Status Codes
Code | Name | Description |
---|---|---|
40211 | DUPLICATE_IDENTITY_TYPE | Returned when trying to attach an identity type that already exists for that profile. For instance you can have only one PlaystationNetwork identity for a profile. |