消息管理

拉取收到的应用消息列表(/v2/nanshanmsgreceiver/GetMsgList)

请求方式:GET(HTTPS请求地址:https://oapi.szns.edu.cn/v2/nanshanmsgreceiver/GetMsgList

参数说明:

参数 必须 说明
page 页数,从1开始
size 分页大小
appid 应用id

返回结果:

{
    "errcode": 0,
    "errmsg": "ok",
    "pageinfo": {
        "total": 1,
        "page": 0,
        "size": 1
    },
    "datalist": [
        {
            "id": 1,
            "title": "标题",
            "content": "富文本内容",
            "abstract": "摘要",
            "path": "/v1/index",
            "abstract_logo": "http://xxx.yyy.com/xx.jpg",
            "sendtime": "2006-01-02 15:04:06",
            "is_read": false,
            "appid": 1
        }
    ]
}

参数说明:

参数 说明
errcode 返回码
errmsg 对返回码的文本描述内容
pageinfo 分页信息
pageinfo.total 总数
pageinfo.page 页数,从1开始
pageinfo.size 分页大小
datalist.id id
datalist.title 标题
datalist.content 内容
datalist.abstract 摘要
datalist.path 跳转路径
datalist.abstract_logo 缩略图
datalist.sendtime 发送时间
datalist.is_read 是否阅读
datalist.appid 应用id

获取收到消息的应用列表(/v2/nanshanmsgreceiver/GetAppMsgInfoList)

请求方式:GET(HTTPS请求地址:https://oapi.szns.edu.cn/v2/nanshanmsgreceiver/GetAppMsgInfoList

参数说明:

返回结果:

{
    "errcode": 0,
    "errmsg": "ok",
    "datalist": [
        {
            "appid": 1,
            "title": "标题",
            "abstract": "摘要",
            "sendtime": "2006-01-02 15:04:06",
            "unread_count": 1
        }
    ]
}

参数说明:

参数 说明
errcode 返回码
errmsg 对返回码的文本描述内容
datalist.appid 应用id
datalist.title 标题
datalist.abstract 摘要
datalist.sendtime 发送时间
datalist.unread_count 未读数

获取收到消息的应用列表(/v2/nanshanmsgreceiver/GetMsgDetail)

请求方式:GET(HTTPS请求地址:https://oapi.szns.edu.cn/v2/nanshanmsgreceiver/GetMsgDetail

参数说明:

参数名称 是否必须 示例 备注
id 消息id

返回结果:

{
  "errcode": 0,
  "errmsg": "ok",
  "id": 1,
  "title": "标题",
  "content": "富文本内容",
  "abstract": "摘要",
  "path": "/v1/index",
  "abstract_logo": "http://xxx.yyy.com/xx.jpg",
  "sendtime": "2006-01-02 15:04:06",
  "is_read": false,
  "appid": 1
}

参数说明:

参数 说明
errcode 返回码
errmsg 对返回码的文本描述内容
id id
title 标题
content 内容
abstract 摘要
path 跳转路径
abstract_logo 缩略图
sendtime 发送时间
is_read 是否阅读
appid 应用id

南山发消息接口(/v2/nanshanmsgsender/NanShanSendMsg)

请求方式:POST HTTPS**)

请求地址:https://oapi.szns.edu.cn/v2/nanshanmsgsender/NanShanSendMsg

参数说明:

参数名称 是否必须 示例 备注
id 消息id

返回结果:

{
    "title": "标题",
    "content": "富文本内容",
    "abstract": "摘要",
    "path": "/v1/index",
    "abstract_logo": "http://xxx.yyy.com/xx.jpg",
    "appid": 1,
    "recipient": {
        "org_user_ids": [1,2,3],
        "role_id": 12,
        "org_id": 1,
        "department_ids": [1,2,3]
    }
}

参数说明:

参数 说明
errcode 返回码
errmsg 对返回码的文本描述内容
id id
2019 Tencent SmartCampus. all right reserved,powered by Gitbooktime: 2021-03-24 08:03:21

results matching ""

    No results matching ""

    results matching ""

      No results matching ""