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

alibaba.campus.mc.messagebox.markmsgstatustoreadbytype (标记单条消息为已读)

标记单条消息为已读

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
receiver Number 可选 1 接收人
type String 可选 1 消息类型
source String 可选 iwork-mall 调用者

响应参数

名称 类型 示例值 描述
result PojoResult {} 响应结果集
  • └ content
  • Boolean
  • true
  • 内容,标记成功:"true",标记失败:"false"
  • └ request_id
  • String
  • 1
  • 请求ID,TOP自带,无须关注
  • └ error_code
  • String
  • 200
  • 错误码
  • └ error_msg
  • String
  • ok
  • 错误信息
  • └ success
  • Boolean
  • true
  • 是否请求成功
  • └ error_level
  • String
  • 0
  • 错误等级
  • └ error_ext_info
  • String
  • {"errormsg":"ok"}
  • 错误详情

请求示例

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

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_mc_messagebox_markmsgstatustoreadbytype_response>
    <result>
        <content>true</content>
        <request_id>1</request_id>
        <error_code>200</error_code>
        <error_msg>ok</error_msg>
        <success>true</success>
        <error_level>0</error_level>
        <error_ext_info>{&quot;errormsg&quot;:&quot;ok&quot;}</error_ext_info>
    </result>
</alibaba_campus_mc_messagebox_markmsgstatustoreadbytype_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

返回
顶部