SysExtendPxExpiry
Extends the presence TTL for \<profileId> by \<seconds>.
Service | Operation |
---|---|
presence | SYS_EXTEND_PX_EXPIRY |
Method Parameters
Parameter | Description |
---|---|
profileId | Target profile id. |
seconds | Number of seconds to extend the px expiry. |
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 seconds = 25;
var presenceProxy = bridge.getPresenceServiceProxy();
var postResult = presenceProxy.sysExtendPxExpiry(profileId, seconds);
if (postResult.status == 200) {
// Success!
}
{
"service": "presence",
"operation": "SYS_EXTEND_PX_EXPIRY",
"data": {
"profileId": "aaa-bbb-ccc-ddd",
"seconds": 25
}
}