https://github.com/peixin/wecom-notify
Push messages through WeCom self-built APP
https://github.com/peixin/wecom-notify
Last synced: 7 months ago
JSON representation
Push messages through WeCom self-built APP
- Host: GitHub
- URL: https://github.com/peixin/wecom-notify
- Owner: peixin
- Created: 2022-01-01T15:56:07.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-09T14:23:08.000Z (over 3 years ago)
- Last Synced: 2025-01-07T12:14:49.545Z (9 months ago)
- Language: TypeScript
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Push messages through WeCom self-built APP host on Cloudflare Workers
[Cloudflare Workers Docs](https://developers.cloudflare.com/workers/)
[WeCom Send APP Message Docs](https://work.weixin.qq.com/api/doc/90000/90135/90236)
```bash
wrangler secret put WECOM_CROP_ID
wrangler secret put WECOM_SECRET
wrangler secret put SECRET_KEY
``````bash
curl -L -X POST "http://127.0.0.1:8787" \
-H "API-KEY: XZrpFyLKQ0dewdUSdW8wc5rd0vJ9lMdUddovhms7BKo=" \
-H "Content-Type: application/json" \
--data-raw '{
"message": {
"agentid": 1000001,
"touser": "@all",
"content": "test"
},
"timestamp": 1641224537
}'
```### dev
`wrangler dev`### publish
`wrangler publish --env production`