Development of official account

Template messages and one-time subscription messages

Template message

Template messages are used to proactively send a public number message to a user, provided that the user follows the public number. Template messages can jump to any link or applets associated with the public number.

Development steps:

  1. Set up the public account industry information.
  2. The template message ID(short ID) can be obtained by filtering the template message in the administrative background.
  3. The management background adds the template message and obtains the complete template message ID. Or obtain the full template ID through the interface using the short ID.
  4. Call the interface to send the template message.

The complete template ID and short ID are similar to the OpenID mechanism obtained by users’ wechat and public accounts.

One-time subscription message

One-time subscription message users can not pay attention to the public number, the user can only send once after agreeing. Can jump links with applets.

Development steps:

  1. Direct the user to open the authorization send message prompt link.
  2. Both agree and cancel have callbacks, and whether the user agrees or not is recorded during the callback.
  3. The send message interface is called when the message is triggered.

The applet also has a subscription message. With the public number of one-time subscription message is different.