wechat-notifier

1.1.1 • Public • Published

wechat-notifier

WeChat notifier, notify message via WeChat official / subscription account with permission to send template message.

How to

To be able to notify successful, or failed message to your WeChat account via your WeChat Official/Subscription account with granted permission to send templated message. Then defines all of the following settings.

  • WECHAT_APPID=<your app id>

    Check at mp.weixin.qq.com for your WeChat official / subscription account.

  • WECHAT_APPSECRET=<your app secret>

    Check at mp.weixin.qq.com for your WeChat official / subscription account.

  • WECHAT_SU_OPENID=<user open id to receive msgs>

    You can find out what is your open id attached to your WeChat official / subscription account you followed by listing followers list via Follow List API.

  • WECHAT_SUCCESS_TEMPLATE_ID=<your template id>

    Check at mp.weixin.qq.com for Template Message section (you might need to apply to grant this ability). Then add a template that has at least 2 keywords, with 1 remark.

  • WECHAT_FAIL_TEMPLATE_ID=<your template id>

    Check at mp.weixin.qq.com for Template Message section (you might need to apply to grant this ability). Then add a template that has at least 4 keywords, with 1 remark.

You need to set all of above environment variables in order to make it works.

Installation

This package is available via NPM see wechat-notifier, or you can just clone this repo.

License

MIT, abzi.co

Package Sidebar

Install

npm i wechat-notifier

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

9.91 kB

Total Files

7

Last publish

Collaborators

  • haxpor