SysTerminatePresence
tip
This method is available in Cloud Code scripts only.
Terminates the presence of 'profileId'.
Service | Operation |
---|---|
presence | SYS_TERMINATE_PRESENCE |
Method Parameters
Parameter | Description |
---|---|
profileId | Target profile ID. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var profileId = "aaa-bbb-ccc-ddd";
var presenceProxy = bridge.getPresenceServiceProxy();
var postResult = presenceProxy.sysTerminatePresence(profileId);
if (postResult.status == 200) {
// Success!
}
{
"service": "presence",
"operation": "SYS_TERMINATE_PRESENCE",
"data": {
"profileId": "aaa-bbb-ccc-ddd"
}
}
JSON Response
{
"data": null,
"status": 200
}