Welcome

IM Members

Lists the users of participants of a direct message. It supports the Offset, Count, and Sort Query Parameters.

URL Requires Auth HTTP Method
/api/v1/im.members yes GET

Query Parameters

Argument Example Required Description
roomId

username
ByehQjC44FwMeiLbX

user

Required
The room id.

The user name.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/im.members?roomId=ByehQjC44FwMeiLbX

Example Result

{
    "members": [
        {
            "_id": "Q4GkX6RMepGDdQ7YJ",
            "status": "online",
            "name": "Marcos Defendi",
            "utcOffset": -3,
            "username": "marcos.defendi"
        },
        {
            "_id": "pimenta.bot",
            "name": "pimenta.bot",
            "username": "pimenta.bot",
            "status": "online",
            "utcOffset": 0
        }
    ],
    "count": 2,
    "offset": 0,
    "total": 2,
    "success": true
}

Change Log

Version Description
0.59.0 Added