Deprecation Notice
The method groups.getInfo
is deprecated. Use channels.getInfo instead.
Description
This method retrieves information related to a group.
Parameters
Name | Type | Required | Description |
---|---|---|---|
token | String | Yes | Authentication token for the user. |
groupId | String | Yes | Identifier of the group for which information was requested |
Response
A single Group object.
{ "id": "g:f71eec8b-b94a-45af-a698-cc139b3d48b1", "name": "<group name>", "memberCount": 15, "profileImage": "https://av.flock.co/9e6d31314638145778a3f51e-full" }
Errors
Error Code | HTTP Status | Description | Additional Parameters |
---|---|---|---|
UnknownGroup | 400 | The group provided in the groupId field can't be located |
2 Comments
Directi
What if the group exist but the requestor is not authorized to access it?
Chaitanya Gupta
I think the
UnknownGroup
error should suffice, unless there is a specific reason to give a "not authorized" or similar error.