Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abzico/wechat-notifier
WeChat notifier, notify message via WeChat official / subscription account with permission to send template message.
https://github.com/abzico/wechat-notifier
api javascript js notifier notify wechat
Last synced: 18 days ago
JSON representation
WeChat notifier, notify message via WeChat official / subscription account with permission to send template message.
- Host: GitHub
- URL: https://github.com/abzico/wechat-notifier
- Owner: abzico
- License: mit
- Created: 2017-11-18T15:53:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-26T13:48:56.000Z (almost 6 years ago)
- Last Synced: 2025-01-05T12:04:11.653Z (29 days ago)
- Topics: api, javascript, js, notifier, notify, wechat
- Language: JavaScript
- Size: 11.7 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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=`
Check at [mp.weixin.qq.com](https://mp.weixin.qq.com) for your WeChat official / subscription account.
* `WECHAT_APPSECRET=`
Check at [mp.weixin.qq.com](https://mp.weixin.qq.com) for your WeChat official / subscription account.
* `WECHAT_SU_OPENID=`
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](http://open.wechat.com/cgi-bin/newreadtemplate?t=overseas_open/docs/oa/user/follower-list#user_follower-list).
* `WECHAT_SUCCESS_TEMPLATE_ID=`
Check at [mp.weixin.qq.com](https://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=`
Check at [mp.weixin.qq.com](https://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](https://www.npmjs.com/package/wechat-notifier), or you can just clone this repo.
# License
MIT, abzi.co