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

类 WxMpTemplateMsgServiceImpl

    • 构造器详细资料

      • WxMpTemplateMsgServiceImpl

        public WxMpTemplateMsgServiceImpl()
    • 方法详细资料

      • addTemplate

        public String addTemplate(String shortTemplateId)
         throws WxErrorException 
        从接口复制的说明: WxMpTemplateMsgService
         获得模板ID
         从行业模板库选择模板到账号后台,获得模板ID的过程可在MP中完成
         详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
         接口地址格式:https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN
         
        指定者:
        addTemplate 在接口中 WxMpTemplateMsgService
        参数:
        shortTemplateId - 模板库中模板的编号,有"TM**"和"OPENTMTM**"等形式
        返回:
        templateId 模板Id
        抛出:
        WxErrorException - .
      • addTemplate

        public String addTemplate(String shortTemplateId,
         List<String> keywordNameList)
         throws WxErrorException 
        从接口复制的说明: WxMpTemplateMsgService
         获得模板ID
         从类目模板库选择模板到账号后台,获得模板ID的过程可在MP中完成
         详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
         接口地址格式:https://api.weixin.qq.com/cgi-bin/template/api_add_template?access_token=ACCESS_TOKEN
         
        指定者:
        addTemplate 在接口中 WxMpTemplateMsgService
        参数:
        shortTemplateId - 模板库中模板的编号,有"TM**"和"OPENTMTM**"等形式,对于类目模板,为纯数字ID
        keywordNameList - 选用的类目模板的关键词,按顺序传入,如果为空,或者关键词不在模板库中,会返回40246错误码
        返回:
        templateId 模板Id
        抛出:
        WxErrorException - .
      • getAllPrivateTemplate

        public List<WxMpTemplate> getAllPrivateTemplate()
         throws WxErrorException 
        从接口复制的说明: WxMpTemplateMsgService
         获取模板列表
         获取已添加至账号下所有模板列表,可在MP中查看模板列表信息,为方便第三方开发者,提供通过接口调用的方式来获取账号下所有模板信息
         详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
         接口地址格式:https://api.weixin.qq.com/cgi-bin/template/get_all_private_template?access_token=ACCESS_TOKEN
         
        指定者:
        getAllPrivateTemplate 在接口中 WxMpTemplateMsgService
        返回:
        templateId 模板Id
        抛出:
        WxErrorException - .
      • delPrivateTemplate

        public boolean delPrivateTemplate(String templateId)
         throws WxErrorException 
        从接口复制的说明: WxMpTemplateMsgService
         删除模板
         删除模板可在MP中完成,为方便第三方开发者,提供通过接口调用的方式来删除某账号下的模板
         详情请见: http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1433751277&token=&lang=zh_CN
         接口地址格式:https://api.weixin.qq.com/cgi-bin/template/del_private_template?access_token=ACCESS_TOKEN
         
        指定者:
        delPrivateTemplate 在接口中 WxMpTemplateMsgService
        参数:
        templateId - 模板Id
        返回:
        . boolean
        抛出:
        WxErrorException - .
跳过导航链接

Copyright © 2024. All rights reserved.

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