WeChat send message (template and interface)

  1. Template message interface

    Template messages are only used by the official account to send important service notifications to users, and can only be used in service scenarios that meet their requirements, such as credit card swiping notifications, product purchase success notifications, etc. Marketing messages such as advertisements and all other messages that may cause harassment to users are not supported. For specific template message operation rules, please read Template Message Operation Specification

 
 
  1. Regarding the rules of use, please note:

    1. All service IDs can see the entry to apply for template message function at Function->Add Function Plugin, but only authenticated service IDs can apply for and obtain the permission to use template messages;
    2. You need to select 2 industries where the official account service is located, and you can change the selected industry once a month;
    3. Select an existing template to call in the template library of the selected industry;
    4. Each account can use 25 templates at the same time.
    5. Currently, the daily call limit of template messages for each account is 100,000 times, and there is no special limit for a single template. [On November 18, 2014, the interface calling frequency was increased from the default 10,000 times a day to 100,000 times a day, which can be viewed in the developer center after MP login]. When the number of followers of the account exceeds 10W/100W/1000W, the daily call limit of template messages will be increased accordingly, and the number indicated on the backend developer center page of the official account MP shall prevail.

  2. Regarding the interface documentation, please note:

    1. When the template message is called, the template ID and the assignment content of each parameter in the template are mainly required;
    2. The parameter content in the template must end with ".DATA", otherwise it will be regarded as a reserved word;
    3. Template reserved symbol "{{ }}".

    content


  3. set industry

    设置行业可在MP中完成,每月可修改行业1次,账号仅可使用所属行业中相关的模板,为方便第三方开发者,提供通过接口调用的方式来修改账号所属行业,具体如下:

    接口调用请求说明

    http请求方式: POST
    https://api.weixin.qq.com/cgi-bin/template/api_set_industry?access_token=ACCESS_TOKEN
    

    POST数据说明

    POST数据示例如下:

          {
              "industry_id1":"1",
              "industry_id2":"4"//industry_id1 和 industry_id2 行业名 最多15个(好像) 4 和1 是微信定义的行业编号  详细接口文档地址
           }

  4. 获取设置的行业信息

    获取帐号设置的行业信息,可在MP中查看行业信息,为方便第三方开发者,提供通过接口调用的方式来获取帐号所设置的行业信息,具体如下:

    接口调用请求说明

    http请求方式:GET
    https://api.weixin.qq.com/cgi-bin/template/get_industry?access_token=ACCESS_TOKEN
    zx
  5. 正确调用后的返回示例:

    {
    "primary_industry":{"first_class":"运输与仓储","second_class":"快递"},
    "secondary_industry":{"first_class":"IT Technology","second_class":"Internet|E-commerce"}
    }

  6. parameter illustrate
    primary_industry Main industry of account settings
    secondary_industry Affiliate industry for account settings

    Other more look at the WeChat public platform (feel useless)

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325571709&siteId=291194637