您的浏览器已禁用 JavaScript。
跳过导航链接
me.chanjar.weixin.mp.api.impl

类 WxMpFreePublishServiceImpl

    • 构造器详细资料

      • WxMpFreePublishServiceImpl

        public WxMpFreePublishServiceImpl()
    • 方法详细资料

      • submit

        public String submit(String mediaId)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        发布接口 - 只有默认必填参数 开发者需要先将图文素材以草稿的形式保存(见"草稿箱/新建草稿",如需从已保存的草稿中选择,见"草稿箱/获取草稿列表"),选择要发布的草稿 media_id 进行发布
         请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/submit?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Publish.html
         
        指定者:
        submit 在接口中 WxMpFreePublishService
        参数:
        mediaId - 要发布的草稿的media_id
        返回:
        the string
        抛出:
        WxErrorException - .
      • getPushStatus

        public WxMpFreePublishStatus getPushStatus(String publishId)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        发布状态轮询接口 开发者可以尝试通过下面的发布状态轮询接口获知发布情况。
         请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/get?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_status.html
         
        指定者:
        getPushStatus 在接口中 WxMpFreePublishService
        参数:
        publishId - 发布任务id
        返回:
        the push status
        抛出:
        WxErrorException - .
      • deletePush

        public Boolean deletePush(String articleId,
         Integer index)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        删除发布 发布成功之后,随时可以通过该接口删除。此操作不可逆,请谨慎操作。
         请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/delete?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Delete_posts.html
         
        指定者:
        deletePush 在接口中 WxMpFreePublishService
        参数:
        articleId - 成功发布时返回的 article_id
        index - 要删除的文章在图文消息中的位置,第一篇编号为1,该字段不填或填0会删除全部文章
        返回:
        the boolean
        抛出:
        WxErrorException - .
      • deletePushAllArticle

        public Boolean deletePushAllArticle(String articleId)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        删除发布 - 此条发布的所有内容,不指定文章编号 发布成功之后,随时可以通过该接口删除。此操作不可逆,请谨慎操作。
         请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/delete?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Delete_posts.html
         
        指定者:
        deletePushAllArticle 在接口中 WxMpFreePublishService
        参数:
        articleId - 成功发布时返回的 article_id
        返回:
        the boolean
        抛出:
        WxErrorException - .
      • getArticleFromId

        public WxMpFreePublishInfo getArticleFromId(String articleId)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        通过 article_id 获取已发布文章 开发者可以通过 article_id 获取已发布的图文信息。
         请求地址:POST https://api.weixin.qq.com/cgi-bin/freepublish/getarticle?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_article_from_id.html
         
        指定者:
        getArticleFromId 在接口中 WxMpFreePublishService
        参数:
        articleId - 要获取的草稿的article_id
        返回:
        已发布文章信息 article from id
        抛出:
        WxErrorException - .
      • getPublicationRecords

        public WxMpFreePublishList getPublicationRecords(int offset,
         int count,
         int noContent)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        获取成功发布列表 - 支持选择是否返回:图文消息的具体内容
         请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/batchget?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html
         
        指定者:
        getPublicationRecords 在接口中 WxMpFreePublishService
        参数:
        offset - 分页页数,从0开始 从全部素材的该偏移位置开始返回,0表示从第一个素材返回
        count - 每页数量 返回素材的数量,取值在1到20之间
        noContent - 1 表示不返回 content 字段,0 表示正常返回,默认为 0
        返回:
        草稿信息列表 publication records
        抛出:
        WxErrorException - .
      • getPublicationRecords

        public WxMpFreePublishList getPublicationRecords(int offset,
         int count)
         throws WxErrorException 
        从接口复制的说明: WxMpFreePublishService
        获取成功发布列表 - 默认返回 图文消息的具体内容
         请求地址:POST https://api.weixin.qq.com/cgi-bin/draft/batchget?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Publish/Get_publication_records.html
         
        指定者:
        getPublicationRecords 在接口中 WxMpFreePublishService
        参数:
        offset - 分页页数,从0开始 从全部素材的该偏移位置开始返回,0表示从第一个素材返回
        count - 每页数量 返回素材的数量,取值在1到20之间
        返回:
        . publication records
        抛出:
        WxErrorException - the wx error exception
跳过导航链接

Copyright © 2024. All rights reserved.

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