Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
53 lines (42 loc) · 1.67 KB

File metadata and controls

53 lines (42 loc) · 1.67 KB

Get Group Information

Retrieves the information about the group/channel, only if you're part of the group.

HTTP MethodURLRequires Auth
GET/api/v1/groups.infoyes

Query Parameters

Only one of the roomId or roomName parameters are required.

KeyExample ValueDescription
roomId*ByehQjC44FwMeiLbXThe group ID.
roomName*Exclusive.ChatThe group name.

Example Call

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

Example Response

{
  "group": {
    "_id": "ByehQjC44FwMeiLbX",
    "name": "testing",
    "fname": "testing",
    "t": "p",
    "msgs": 0,
    "usersCount": 2,
    "u": {
      "_id": "HKKPmF8rZh45GMHWH",
      "username": "marcos.defendi"
    },
    "customFields": {},
    "broadcast": false,
    "encrypted": false,
    "ts": "2020-05-21T13:16:24.749Z",
    "ro": false,
    "default": false,
    "sysMes": true,
    "_updatedAt": "2020-05-21T13:16:24.772Z"
  },
  "success": true
}

Change Log

Version Description
0.48.0 Added