SysTerminatePresence
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
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw 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"
}
}