public interface WxMpGuideMaterialService
| 限定符和类型 | 方法和说明 | 
|---|---|
| void | delGuideCardMaterial(int type,
                    String title,
                    String path,
                    String appId)删除小程序卡片素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/delguidecardmaterial? | 
| void | delGuideImageMaterial(int type,
                     String picUrl)删除图片素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/delguideimagematerial? | 
| void | delGuideWordMaterial(int type,
                    String word)删除文字素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/delguidewordmaterial? | 
| List<WxMpGuideCardMaterialInfo> | getGuideCardMaterial(int type)查询小程序卡片素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguidecardmaterial? | 
| WxMpGuideImgMaterialInfoList | getGuideImageMaterial(int type,
                     int start,
                     int num)查询图片素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguideimagematerial? | 
| WxMpGuideWordMaterialInfoList | getGuideWordMaterial(int type,
                    int start,
                    int num)查询文字素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/getguidewordmaterial? | 
| void | setGuideCardMaterial(String mediaId,
                    int type,
                    String title,
                    String path,
                    String appId)添加小程序卡片素材
 
 踩坑记录(2021/5/12):该方法只支持临时素材mediaid
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/setguidecardmaterial? | 
| void | setGuideImageMaterial(String mediaId,
                     int type)添加图片素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/setguideimagematerial? | 
| void | setGuideWordMaterial(int type,
                    String word)添加文字素材
 
 请求地址: POST https://api.weixin.qq.com/cgi-bin/guide/setguidewordmaterial? | 
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 - 小程序的appidWxErrorException - .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,表示服务号素材WxErrorException - .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 - 小程序的appidWxErrorException - .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 - .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 - 分页查询,查询个数WxErrorException - .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 - .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 - .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 - 分页查询,查询个数WxErrorException - 。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.