文档中心 > API类目 > 智慧园区API

alibaba.campus.mc.messagebox.getmbcataloglist (获取消息目录)

获取消息目录

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
account_id Number 可选 1 账号ID
source String 可选 iwork-mall 调用者

响应参数

名称 类型 示例值 描述
result CollectionResult {} 响应结果集
  • contents
  • Content []
  • []
  • 具体内容
  • └ last_msg_time
  • Number
  • 1234123123
  • 最新消息时间戳
  • └ icon_url
  • String
  • xx.xx.com/xxx.jpg
  • 消息类型图标URL
  • └ last_msg_title
  • String
  • 12313
  • 最新消息标题
  • └ account_id
  • Number
  • 1
  • 账户ID
  • └ type_c_name
  • String
  • 手机消息
  • 消息类型中文名称
  • └ type
  • String
  • 1
  • 消息类型ID
  • └ last_msg_id
  • Number
  • 1
  • 最新消息ID
  • └ unread_count
  • Number
  • 1
  • 未读消息个数
  • └ gmt_modified
  • Date
  • 12312313
  • 修改时间
  • └ gmt_create
  • Date
  • 1231231313
  • 创建时间
  • └ id
  • Number
  • 1
  • id
  • └ total_count
  • Number
  • 123
  • 总数据
  • └ request_id
  • String
  • 1
  • 请求ID,TOP自带,无需关注
  • └ error_code
  • String
  • 200
  • 错误码
  • └ error_msg
  • String
  • ok
  • 错误码信息
  • └ success
  • Boolean
  • true
  • 是否请求成功
  • └ error_level
  • String
  • 1
  • 错误级别
  • └ error_ext_info
  • String
  • {"errormsg":"ok"}
  • 错误详情

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusMcMessageboxGetmbcataloglistRequest req = new AlibabaCampusMcMessageboxGetmbcataloglistRequest();
req.setAccountId(1L);
req.setSource("iwork-mall");
AlibabaCampusMcMessageboxGetmbcataloglistResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_mc_messagebox_getmbcataloglist_response>
    <result>
        <contents>
            <content>
                <last_msg_time>1234123123</last_msg_time>
                <icon_url>xx.xx.com/xxx.jpg</icon_url>
                <last_msg_title>12313</last_msg_title>
                <account_id>1</account_id>
                <type_c_name>手机消息</type_c_name>
                <type>1</type>
                <last_msg_id>1</last_msg_id>
                <unread_count>1</unread_count>
                <gmt_modified>12312313</gmt_modified>
                <gmt_create>1231231313</gmt_create>
                <id>1</id>
            </content>
        </contents>
        <total_count>123</total_count>
        <request_id>1</request_id>
        <error_code>200</error_code>
        <error_msg>ok</error_msg>
        <success>true</success>
        <error_level>1</error_level>
        <error_ext_info>{&quot;errormsg&quot;:&quot;ok&quot;}</error_ext_info>
    </result>
</alibaba_campus_mc_messagebox_getmbcataloglist_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部