MergeOculusIdentity
Merge the user's Oculus credentials with the current profile.
Service | Operation |
---|---|
identity | MERGE |
Method Parameters
Parameter | Description |
---|---|
userId | The Oculus id of the user |
nonce | The returned nonce from the Oculus Platform SDK |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string userId = "userId";
string nonce = "nonce";
_bc.IdentityService.MergeOculusIdentity(
userId,
nonce,
SuccessCallback, FailureCallback);
const char * userId = "userId";
const char * nonce = "nonce";
_bc->getIdentityService()->mergeOculusIdentity(
userId, nonce, this);
// N/A
String userId = "userId";
String nonce = "nonce";
this; // implements IServerCallback
_bc.getIdentityService().mergeOculusIdentity(userId, nonce, this);
public void serverCallback(ServiceName serviceName, ServiceOperation serviceOperation, JSONObject jsonData)
{
System.out.print(String.format("Success | %s", jsonData.toString()));
}
public void serverError(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
{
System.out.print(String.format("Failed | %d %d %s", statusCode, reasonCode, jsonError.toString()));
}
// 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 Twitter identity for a profile. |