您的浏览器已禁用 JavaScript。
跳过导航链接
  • 概要:
  • 嵌套 |
  • 字段 |
  • 构造器 |
  • 方法
  • 详细资料:
  • 字段 |
  • 构造器 |
  • 方法
me.chanjar.weixin.mp.api

接口 WxMpCommentService

  • 所有已知实现类:
    WxMpCommentServiceImpl


    public interface WxMpCommentService
    图文消息留言管理接口. https://developers.weixin.qq.com/doc/offiaccount/Comments_management/Image_Comments_Management_Interface.html
    作者:
    Binary Wang created on 2019年06月16日
    • 方法详细资料

      • open

        void open(String msgDataId,
         Integer index)
         throws WxErrorException 
        打开已群发文章评论. https://api.weixin.qq.com/cgi-bin/comment/open?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        抛出:
        WxErrorException - 异常
      • close

        void close(String msgDataId,
         Integer index)
         throws WxErrorException 
        关闭已群发文章评论. https://api.weixin.qq.com/cgi-bin/comment/close?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        抛出:
        WxErrorException - 异常
      • list

        WxMpCommentListVo list(String msgDataId,
         Integer index,
         int begin,
         int count,
         int type)
         throws WxErrorException 
        查看指定文章的评论数据. https://api.weixin.qq.com/cgi-bin/comment/list?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        begin - 起始位置
        count - 获取数目(>=50会被拒绝)
        type - type=0 普通评论&精选评论 type=1 普通评论 type=2 精选评论
        返回:
        评论列表数据 wx mp comment list vo
        抛出:
        WxErrorException - 异常
      • markElect

        void markElect(String msgDataId,
         Integer index,
         Long userCommentId)
         throws WxErrorException 
        2.4 将评论标记精选. 接口调用请求: POST https://api.weixin.qq.com/cgi-bin/comment/markelect?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        userCommentId - 用户评论id
        抛出:
        WxErrorException - 异常
      • unmarkElect

        void unmarkElect(String msgDataId,
         Integer index,
         Long userCommentId)
         throws WxErrorException 
        2.5 将评论取消精选. 接口调用请求: POST https://api.weixin.qq.com/cgi-bin/comment/unmarkelect?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        userCommentId - 用户评论id
        抛出:
        WxErrorException - 异常
      • delete

        void delete(String msgDataId,
         Integer index,
         Long userCommentId)
         throws WxErrorException 
        2.6 删除评论. 接口调用请求: POST https://api.weixin.qq.com/cgi-bin/comment/delete?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        userCommentId - 用户评论id
        抛出:
        WxErrorException - 异常
      • replyAdd

        void replyAdd(String msgDataId,
         Integer index,
         Long userCommentId,
         String content)
         throws WxErrorException 
        2.7 回复评论. 接口调用请求: POST https://api.weixin.qq.com/cgi-bin/comment/reply/add?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        userCommentId - 用户评论id
        content - 回复内容
        抛出:
        WxErrorException - 异常
      • replyDelete

        void replyDelete(String msgDataId,
         Integer index,
         Long userCommentId)
         throws WxErrorException 
        2.8 删除回复. 接口调用请求: POST https://api.weixin.qq.com/cgi-bin/comment/reply/delete?access_token=ACCESS_TOKEN
        参数:
        msgDataId - 群发返回的msg_data_id
        index - 多图文时,用来指定第几篇图文,从0开始,不带默认操作该msg_data_id的第一篇图文
        userCommentId - 用户评论id
        抛出:
        WxErrorException - 异常
跳过导航链接
  • 概要:
  • 嵌套 |
  • 字段 |
  • 构造器 |
  • 方法
  • 详细资料:
  • 字段 |
  • 构造器 |
  • 方法

Copyright © 2024. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /