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

接口 WxMpGuideMaterialService

    • 方法详细资料

      • setGuideCardMaterial

        void setGuideCardMaterial(String mediaId,
         int type,
         String title,
         String path,
         String appId)
         throws WxErrorException 
        添加小程序卡片素材

        踩坑记录(2021年5月12日):该方法只支持临时素材mediaid

         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/setguidecardmaterial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.setGuideCardMaterial.html
         
        参数:
        mediaId - 图片素材,只能用《素材管理获取media_id》(注意:只支持临时素材的media_id)
        type - 操作类型,填0,表示服务号素材
        title - 小程序卡片名字
        path - 小程序路径
        appId - 小程序的appid
        抛出:
        WxErrorException - .
      • getGuideCardMaterial

        List<WxMpGuideCardMaterialInfo> getGuideCardMaterial(int type)
         throws WxErrorException 
        查询小程序卡片素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguidecardmaterial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.getGuideCardMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        返回:
        小程序卡片素材信息列表 guide card material
        抛出:
        WxErrorException - .
      • delGuideCardMaterial

        void delGuideCardMaterial(int type,
         String title,
         String path,
         String appId)
         throws WxErrorException 
        删除小程序卡片素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/delguidecardmaterial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.delGuideCardMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        title - 小程序卡片名字
        path - 小程序路径
        appId - 小程序的appid
        抛出:
        WxErrorException - .
      • setGuideImageMaterial

        void setGuideImageMaterial(String mediaId,
         int type)
         throws WxErrorException 
        添加图片素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/setguideimagematerial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.setGuideImageMaterial.html
         
        参数:
        mediaId - 图片素材,只能用《素材管理获取media_id》(注意:只支持临时素材的media_id)
        type - 操作类型,填0,表示服务号素材
        抛出:
        WxErrorException - .
      • getGuideImageMaterial

        WxMpGuideImgMaterialInfoList getGuideImageMaterial(int type,
         int start,
         int num)
         throws WxErrorException 
        查询图片素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguideimagematerial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.getGuideImageMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        start - 分页查询,起始位置
        num - 分页查询,查询个数
        返回:
        图片素材列表 guide image material
        抛出:
        WxErrorException - .
      • delGuideImageMaterial

        void delGuideImageMaterial(int type,
         String picUrl)
         throws WxErrorException 
        删除图片素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/delguideimagematerial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.delGuideImageMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        picUrl - 图片素材内容
        抛出:
        WxErrorException - .
      • setGuideWordMaterial

        void setGuideWordMaterial(int type,
         String word)
         throws WxErrorException 
        添加文字素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/setguidewordmaterial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.setGuideWordMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        word - 文字素材内容
        抛出:
        WxErrorException - .
      • getGuideWordMaterial

        WxMpGuideWordMaterialInfoList getGuideWordMaterial(int type,
         int start,
         int num)
         throws WxErrorException 
        查询文字素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguidewordmaterial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.getGuideWordMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        start - 分页查询,起始位置
        num - 分页查询,查询个数
        返回:
        文字素材列表 guide word material
        抛出:
        WxErrorException - 。
      • delGuideWordMaterial

        void delGuideWordMaterial(int type,
         String word)
         throws WxErrorException 
        删除文字素材
         请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/delguidewordmaterial?access_token=ACCESS_TOKEN
         文档地址:https://developers.weixin.qq.com/doc/offiaccount/Shopping_Guide/model-account/shopping-guide.delGuideWordMaterial.html
         
        参数:
        type - 操作类型,填0,表示服务号素材
        word - 文字素材内容
        抛出:
        WxErrorException - .
跳过导航链接
  • 概要:
  • 嵌套 |
  • 字段 |
  • 构造器 |
  • 方法
  • 详细资料:
  • 字段 |
  • 构造器 |
  • 方法

Copyright © 2024. All rights reserved.

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