Webhook is a message callback service based on Mixin Messenger. You can apply Webhook to any service that you want to forward messages to Mixin Messenger. Webhook currently support the following websocket messages types: PLAIN_TEXT
, PLAIN_CONTACT
, PLAIN_POST
, APP_BUTTON_GROUP
and APP_CARD
. You can check the details of Websocket Messages in Mixin Developer. In addition, Webhook also supports GitHub Push events.
- Security: Webhook only forward messages and does not save message content.
- Privacy: Webhook works in group chats of Mixin Messenger, the group chats support end-to-end encryption.
- Easy to use: A single line of code for message forwarding.
- Open source: Webhook is open source , you can use the source code to build your own services.
Search 7000000012
in Mixin Messenger and add Webhook as contact.
Invite Webhook and somebody who want to receive message to a group in Mixin Messenger. Open Webhook in the group, you can see the access token. Note that the access token is only available for the owner of the group. Also you can send message to yourself when you authorize to Webhook and when you open Webhook you can see the personal access token.
Example:
$ curl https://webhook.exinwork.com/api/send?access_token=YOUR_ACCESS_TOKEN \
-XPOST -H 'Content-Type: application/json' \
-d '{"category":"PLAIN_TEXT","data":"Hello World!"}'
You can check the sample code in Webhook Samples, which support Go, PHP, Python and Shell.
Webhook supports GitHub Push events, which you can set up in your GitHub repository.
GitHub Webhook URL:
https://webhook.exinwork.com/api/github?access_token=YOUR_ACCESS_TOKEN
- Wechat:ThorbJ
- Mixin: 1070593
- Email :thorb@exin.one