-
Notifications
You must be signed in to change notification settings - Fork 11
token
phachon edited this page Jun 6, 2018
·
1 revision
For request safety, manager api request require auth token
If manager api [Auth Token] is true, you must set token in the header of the request url
View the configuration file wmqx.toml
[api]
# api server auth token http header token name
tokenHeaderName = "WMQX_API_TOKEN"
# api server auth token http header token value
token = "guest"
Set request header
request.Header.Set("WMQX_API_TOKEN", "guest")