GetPresenceOfUsers
Gets the presence data for the given \<profileIds>. Will not include offline profiles unless \<includeOffline> is set to true.
Service | Operation |
---|---|
presence | GET_PRESENCE_OF_USERS |
Method Parameters
Parameter | Description |
---|---|
profileIds | Gets a list of Presence for the specified profile ids. |
includeOffline | Should offline users be included in the response? |
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 profileIds = ["aaa-bbb-ccc-ddd","bbb-ccc-ddd-eee"];
var includeOffline = true;
var presenceProxy = bridge.getPresenceServiceProxy();
var postResult = presenceProxy.getPresenceOfUsers(profileIds, includeOffline);
if (postResult.status == 200) {
// Success!
}
{
"service": "presence",
"operation": "GET_PRESENCE_OF_USERS",
"data": {
"profileIds": [
"aaa-bbb-ccc-ddd",
"bbb-ccc-ddd-eee"
],
"includeOffline": true
}
}