
# 查询信息窗发布 - SearchPublications
#### 描述
获取信息窗发布。
#### 调试
您可以在[API Explorer](https://apiexplorer.developer.huaweicloud.com/apiexplorer/debug?product=Meeting&api=SearchPublications)中调试该接口。
#### URI
GET /v1/usg/sss/publications
#### 请求参数
表1参数说明 
| 参数              | 是否必须 | 类型      | 位置     | 描述                                                                                                     |
|:---|:---|:---|:---|:---|
| offset          | 否    | Integer | Query  | 查询偏移量，若超过最大数量，则返回最后一页。 默认值：0                                    |
| limit           | 否    | Integer | Query  | 查询数量。 默认值：10                                                   |
| searchKey       | 否    | String  | Query  | 搜索条件，支持名称模糊搜索。                                                                                         |
| X-Access-Token  | 是    | String  | Header | 授权令牌。获取"[执行App ID鉴权](https://support.huaweicloud.com/api-meeting/meeting_21_0311.html)"响应的accessToken。 |
| X-Request-Id    | 否    | String  | Header | 请求requestId，用来标识一路请求，用于问题跟踪定位，建议使用UUID，若不携带，则后台自动生成。                                                   |
| Accept-Language | 否    | String  | Header | 语言参数，默认为中文zh-CN，英文为en-US。                                                                              |
   
#### 状态码
表2状态码说明 
| HTTP状态码 | 描述        |
|:---|:---|
| 200     | 操作成功。     |
| 400     | 参数异常。     |
| 401     | 未鉴权或鉴权失败。 |
| 403     | 权限受限。     |
| 500     | 服务端异常     |
   
#### 响应参数
表3响应参数 
| 参数     | 类型                                                                                      | 描述                                                           |
|:---|:---|:---|
| count  | Integer                                                                                 | 总数量。                                                         |
| limit  | Integer                                                                                 | 每页显示的条目数量。 默认值：10。 |
| offset | Integer                                                                                 | 页面起始页，从0开始。                                                  |
| data   | Array of [PublicationResponseBase] objects | 发布响应信息。                                                      |
   
 表4PublicationResponseBase 数据结构 
| 参数            | 类型     | 描述                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
|:---|:---|:---|
| createTime    | Long   | 创建时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| endTime       | Long   | 结束时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| id            | String | 发布ID。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| lastUpdatedBy | String | 更新者。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| publishName   | String | 发布名称。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| publishScope  | String | 发布范围。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| publishStatus | String | 根据当前时间确定发布状态。 - NOT_ONLINE - 未上线   - PUBLISHING - 发布中   - ALREADY_OFFLINE - 已下线    |
| startTime     | Long   | 开始时间。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| updateTime    | Long   | 更新时间                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
   
#### 请求消息示例
```
GET /v1/usg/sss/publications?offset=0&limit=10&searchKey=
Connection: keep-alive
X-Access-Token: cnrfzn5OLRjwoaOf2F7PfMwVjJ6zScFogbDE
Content-Type: application/json
Host: api.meeting.huaweicloud.com 
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)
```
#### 响应消息示例
```
HTTP/1.1 200 
Date: Wed, 18 Dec 2019 06:20:40 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 1329
Connection: keep-alive
Pragma: No-cache
Cache-Control: no-cache
Server: api-gateway
X-Request-Id: 21facce44sd8efa02329afd189da7f3d
{
    "count": 1,
    "data": [
        {
            "createTime": 1593538236711,
            "endTime": 253402271999000,
            "id": "2baafa7ffef04c62a3c3f79f9f8a1a3a",
            "lastUpdatedBy": "",
            "publishName": "cCu78RV8Ai",
            "publishScope": "",
            "publishStatus": "PUBLISHING",
            "startTime": 0,
            "updateTime": 1593538236711
        }
    ],
    "limit": 10,
    "offset": 0
}
```
#### 错误码
当您使用华为云会议服务端API时，如果遇到"MMC"或者"USG"开头的错误码，请参考[华为云API错误中心](https://apierrorcenter.developer.huaweicloud.com/apierrorcenter/errorcode?product=Meeting)。
#### CURL命令示例
```
curl -k -i -X GET -H 'X-Access-Token: cnrfzn5OLRjwoaOf2F7PfMwVjJ6zScFogbDE' 
https://api.meeting.huaweicloud.com/v1/usg/sss/publications?offset=0&limit=10
```
