DetachUltraIdentity
Detach the Ultra identity from this profile.
Service | Operation |
---|---|
identity | DETACH |
Method Parameters
Parameter | Description |
---|---|
ultraUsername | It's what the user uses to log into the Ultra endpoint initially |
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 ultraUsername = "ultraUsername";
_bc.IdentityService.DetachOculusIdentity(
ultraUsername,
true,
SuccessCallback, FailureCallback);
const char * ultraUsername = "ultraUsername";
_bc->getIdentityService()->detachOculusIdentity(
ultraUsername, false, this);
- (void)detachUltraIdentity:(NSString *)ultraUsername
continueAnon:(bool)continueAnon
completionBlock:(BCCompletionBlock)cb
errorCompletionBlock:(BCErrorCompletionBlock)ecb
cbObject:(BCCallbackObject)cbObject;
public void detachUltraIdentity(String ultraUsername, boolean continueAnon, IServerCallback callback)
_bc.identity.detachUltraIdentity = function(ultraUsername, continueAnon, callback)
var ultraUsername = "someId";
var continueAnon = true;
ServerResponse result = await _bc.identityService.detachUltraIdentity(ultraUsername:ultraUsername, continueAnon:continueAnon);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
// 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. |