Get Rooms
    • Dark
      Light
    • PDF

    Get Rooms

    • Dark
      Light
    • PDF

    Article summary

    Get all rooms a user belongs to.

    Payload parameters

    Argument

    Example

    Required

    Description

    date

    { "$date": 1480377601 }

    Required

    A timestamp with the latest client update time in order to just send what changed since last call. If it's the first time calling, send a 0 as date.

    Example call

    {
        "msg": "method",
        "method": "rooms/get",
        "id": "42",
        "params": [ { "$date": 1480377601 } ]
    }

    Example response

    The result is an object with two fields: update and remove.

    Remove field

    The remove field is a collection of room IDs identifying the rooms that were removed from the server.

    Update field

    The update field is a collection of room and its content varies according to the room type.

    {
        "msg": "result",
        "id": "42",
        "result": {
            "update": [
                ... // rooms
            ],
            "remove": [
                ... // room ids
            ]
        }
    }


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence