Skip to content

Send a message to your WeChat using the HTTP API.

Notifications You must be signed in to change notification settings

Entropy273/wecom-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wecom-proxy

Rust version of wecomchan.

Just call the API, and the message will be sent to your WeChat & WeCom.

Usage

docker run -d -p {}:3000 --name wecom-proxy \
-e AUTH_KEY="{}" \
-e WECOM_CID="{}" \
-e WECOM_AID="{}" \
-e WECOM_SECRET="{}" \
entropy273/wecom-proxy
  • AUTH_KEY: auth key. Set by yourself to protect the proxy.
  • WECOM_CID: corpid of WeCom.
  • WECOM_AID: appid of WeCom Application.
  • WECOM_SECRET: secret of WeCom Application.

For details on obtaining these parameters, refer to wecomchan.

API

GET /wecom

  • auth_key: auth key
  • msg: message to send
curl -X GET http://localhost:3000/wecom?auth_key=auth_key&msg=message

POST /wecom

Content-Type: application/json

  • auth_key: auth key
  • msg: message to send
curl -X POST -H "Content-Type: application/json" -d '{"auth_key": "auth_key", "msg": "message"}' http://localhost:3000/wecom

About

Send a message to your WeChat using the HTTP API.

Resources

Stars

Watchers

Forks