DetachOculusIdentity
Detach the Oculus identity from this profile.
Service | Operation |
---|---|
identity | DETACH |
Method Parameters
Parameter | Description |
---|---|
userId | The Oculus id of the user |
continueAnon | Proceed even if the profile will revert to anonymous? |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
string userId = "userId";
_bc.IdentityService.DetachOculusIdentity(
userId,
true,
SuccessCallback, FailureCallback);
const char * userId = "userId";
_bc->getIdentityService()->detachOculusIdentity(
userId, false, this);
// N/A
String userId = "userId";
this; // implements IServerCallback
_bc.getIdentityService().detachOculusIdentity(userId, true, 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
{
"status": 200,
"data": null
}
Common Error Code
Status Codes
Code | Name | Description |
---|---|---|
40210 | DOWNGRADING_TO_ANONYMOUS_ERROR | Occurs when detaching the last non-anonymous identity from an account with continueAnon set to false. |