-
Notifications
You must be signed in to change notification settings - Fork 11
publish
phachon edited this page Jun 6, 2018
·
1 revision
- Path: /publish/(wmqx message name)
- Request: HTTP
- Method: POST || GET
- Params:
name | type | required | description | comment |
---|---|---|---|---|
WMQX_MESSAGE_TOKEN | string | true | message token | This parameter key must exist in the http header |
WMQX_MESSAGE_ROUTEKEY | string | true | message router_key | This parameter key must exist in the http header |
WMQX_MESSAGE_TOKEN, WMQX_MESSAGE_ROUTEKEY can change by update config:
[publish]
messageTokenHeader = "WMQX_MESSAGE_TOKEN"
messageRouteKeyHeader = "WMQX_MESSAGE_ROUTEKEY"
- Success:
{
"code": 1,
"message": "success",
"data": {}
}
- Failed:
{
"code": 0,
"message": "error",
"data": {}
}