In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
WeChat Mini Programs in how to achieve a send subscription message function, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Development process:
Step 1: get the template ID
Manually configure the acquisition template ID on Wechat public platform:
Log in to the Mini Program backend to obtain the template. If there is no suitable template, you can apply to add a new template, which can be used after approval.
To select the template you want to use, you need to use the template ID of the template and its template field type (be sure to pay attention).
Step 2: get the permission to issue
For more information, please see the message subscription API wx.requestSubscribeMessage on Mini Program, which is processed at the front end.
Step 3: call the API to send subscription messages
1. First call the api.weixin.qq.com/cgi-b API of Mini Program to obtain ACCESS_TOKEN
two。 Then call the address of the interface that sends the subscription message, which is api.weixin.qq.com/cgi-b, and the request method is POST request. The request parameters include the user's openid, the subscription template id to be distributed, and the template content, with a format such as {"key1": {"value": any}, "key2": {"value": any}}.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.