AttachPlaystationNetworkIdentity
Attach the user's PlaystationNetwork credentials to the current profile.
Service | Operation |
---|---|
identity | ATTACH |
Method Parameters
Parameter | Description |
---|---|
playstationNetworkId | The playstationNetwork id of the user |
authenticationToken | The validated token from the PlaystationNetwork 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
// N/A
const char * playstationNetworkId = "somePlaystationNetworkId";
const char * authenticationToken = "somePlaystationNetworkAuthToken";
_bc->getIdentityService()->attachPlaystationNetworkIdentity(
playstationNetworkId, authenticationToken, this);
// N/A
// N/A
// N/A
// N/A
// N/A
// N/A
JSON Response
{
"status": 200,
"data": null
}
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. |
40212 | MERGE_PROFILES | Returned when trying to attach an identity type that would result in two profiles being merged into one (for instance an anonymous account and a PlaystationNetwork account). |