查询群公告

GET api/v1/channel/announcement/get

  • 说明: 查询群组公告,仅群组内成员可见

  • Header

Field
Type
Remarks

ApiKey

String

从管理员获取的ApiKey

Authorization

String

Bearer ${unifiedAuthToken} ,其中unifiedAuthToken来自/api/v1/auth接口的返回

  • Request Parameters

Field
Type
Remarks

channelUuid

String

群组的uuid

  • Request Example

curl POST 'https://api.relationlabs.ai/api/v1/channel/announcement/get?channelUuid=4f326124812c41448bc587bf6b2eaf42' \
--header 'ApiKey: <ApiKey>' \
--header 'Authorization: bearer eyJhbGciOi1JFUzI1NiJ9.eyJqdGkiOiI0MzdiN2EzZDEwMGY0ODVkOWVhMWUzZmZlOWE1NmEyZSIsImlzcyI6InJlbGF0aW9ubGFicy5haSIsImlhdCI6MTY2NTIxNTUzNSwic3ViIjoiZGhreXEtc3FhYWEtYWFhYWotc2d6M3EtY2FpIiwiZXhwIjoxNjY11ODIwMzM1fQ.rj7KKuIcgmvaIwZ63YHnXQ4jvvI-eR2Wo7k3YEy1zMuxo8j5ezCowKDpcW0u9zIuHPFqwD0-1XPWdPLR1d1HLFw' \
--header 'Content-Type: application/json' 
  • Response Parameters

Field
Type
Remarks

code

String

返回码

desc

String

返回信息

data

Announcement

公告信息

The Announcement field consists of the following subfields:

Field
Type
Remarks

announcement

String

公告内容

pinAnnouncement

boolean

是否置顶,true-置顶;false-未置顶

  • Response Body

{
  "code": "0",
  "desc": "success",
  "data": {
    "announcement": "1234",
    "pinAnnouncement": true
  }
}
  • Return Code

code
desc
Remarks

0

success

接口调用成功

13108

Not the member of this group

非当前群组的成员

Last updated