1. 获取消息列表接口

接口名称 获取消息列表
功能描述 获取消息列表
请求地址 http://qy-ci.fdccloud.com/api/wzs/get-message-list?access_token=@access_token
请求方式 POST(HTTPS)

请求包结构

{

    "wzs_user_id": "@wzs_user_id",
    "tenant_id": "@tenant_id",
    "version_name": "3.9.0",
    "device_id ": "@device_id",
    "device_name": "iPhone 11 Pro",
    "device_token": "@device_token",
    "platform": 1,
    "push_channel": 1,
    "os_version": "13.1",
    "__language__": "zh-CN"
}

返回结果

{
    "success": 1,
    "data": {
        "code": 1,
        "message": "",
        "tip": {
            "tip_id": "123",
            "tip_content": "系统将于12月11日 23:00-24:00进行更新,届时服务将暂停使用!"
        },
        "message_list": [{
            "tenant_id": "my56a9c966df069",
            "app_code": "10000",
            "app_name": "公告",
            "openurl": "https://qy-ci.fdccloud.com/appcenter/dispatch/open?__tenant_id=my56a9c966df069&__app_code=10000",
            "app_logo_url": "https://qy-ci.fdccloud.com/images/mNotice_640.png",
            "last_msg_type": "news",
            "last_msg_content": "关于做好企业的消毒和健康排查通知",
            "last_msg_time": "2020-02-17 17:03:11",
            "new_msg_count": 0,
            "mark": [],
            "app_type": "0",
            "app_id": "11",
            "msg_mode": 0,
            "is_app": "1",
            "download_url":""
        }, {
            "tenant_id": "my56a9c966df069",
            "app_code": "20001",
            "app_name": "云助手团队",
            "openurl": "https://qy-ci.fdccloud.com/appcenter/dispatch/open?__tenant_id=my56a9c966df069&__app_code=20001",
            "is_app": false,
            "app_logo_url": "https://qy-ci.fdccloud.com/images/mPubNotice_640_v2.png",
            "last_msg_ywtype": "news",
            "last_msg_content": "1111111",
            "new_msg_count": 0,
            "last_msg_time": "2019-12-12 09:58:34",
            "msg_mode": 0,
            "app_type": "0",
            "download_url":""
        }],
        "extra": {
            "todo_center": {
                "enable": true,
                "open_url": "https://qy-ci.fdccloud.com/appcenter/dispatch/open?__tenant_id=my56a9c966df069&__app_code=10001",
                "new_msg_count":99
            },
            "need_get_badge": 0
        }
    }
}
参数 中文名 参数类型 说明
last_msg_ywtype 消息类型 String text,news,oa
new_msg_count 角标数量 int
mark 消息标识 String
bgcolor 消息标识背景 String 如果没有默认颜色为8CCBFF
tip_id 提示信息id String
tip_content 提示信息内容 String
is_avoid_disturbing 是否开启了消息免打扰 int -1:服务端暂时没有开启此功能(消息详情右上角不显示设置入口)0:消息免打扰关 1:消息免打扰开
app_type APP类型 int 0:H5应用 1:原生APP 2:离线应用
is_app 是否为应用 int 1:是 0:否
bundle_id bundleId或包名 String
scheme 启用APP时会用到 String
app_store_url app的商城下载地址 String
msg_mode 消息模式 int 0:默认消息模式 1:待办模式
todo_center_enable 待办中心灰度开关 bool true:开启 false:关闭
download_url string 离线应用下载地址
need_get_badge 是否需要客户端自己调用接口获取应用消息角标数 int 1-需要;0-不需要

results matching ""

    No results matching ""