Gets the list of users matching the given criteria.
https://chatwee-api.com/v2/reporting/search-users
GET https://chatwee-api.com/v2/reporting/search-users?chatId=57c493789da1fbc017000029&clientKey=507f191e810c19729de860ea&type=CHATWEE
{
"users": [{
"id": "59cc00127a6e8b2c3b2717a3",
"login": "Chatwee Admin",
"type": "CHATWEE",
"avatar": "https://static.chatwee-api.com/v2/avatars/LXwfhiKwybzDy9Z68rd9eAyyNdcxNpLs.png",
"roles": ["ADMIN"],
"online": false,
"createTime": "2017-01-08T16:37:21.933Z",
"lastLoginTime": "2017-09-27T19:45:44.466Z"
}]
}
Name | Description | Type | Mandatory | Remarks |
---|---|---|---|---|
chatId | unique chat ID | string | yes | available in 'INTEGRATION' section of the Chatwee Dashboard |
clientKey | client secret | string | yes | available in 'INTEGRATION' section of the Chatwee Dashboard |
login | user login | string | no | - |
type | user type | string | no | avilable values: CHATWEE, FACEBOOK, GUEST, SSO |
createTimeFrom | minimum value of the user creation time | number | no | the number of milliseconds since 1970/01/01 - JavaScript timestamp |
createTimeTo | maximum value of the user creation time | number | no | the number of milliseconds since 1970/01/01 - JavaScript timestamp |
lastLoginTimeFrom | minimum value of the user last login time | number | no | the number of milliseconds since 1970/01/01 - JavaScript timestamp |
lastLoginTimeTo | maximum value of the user last login time | number | no | the number of milliseconds since 1970/01/01 - JavaScript timestamp |
usersIds | list of user IDs to narrow the result set | string | no | comma-separated list of user IDs |