API Specificationxmb.api.v1.NotificationDiscordService
Set Discord enabled
Switches Discord notifications on or off for the caller. On links the Discord account on their Xeonr account for DM delivery (returning authorize_url to link one first when there is none); off removes the link. This is the consent — nothing links as a side effect of anything else.
Required scopes: xmb:user:write
Authorization
BearerAuth AuthorizationBearer <token>
An access token issued by the xeonr identity provider.
In: header
Header Parameters
Connect-Protocol-Version?number
Define the version of the Connect protocol
Connect-Timeout-Ms?number
Define the timeout, in ms
Request Body
application/json
enabled?boolean
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://xmb.gg/xmb.api.v1.NotificationDiscordService/SetDiscordEnabled" \ -H "Connect-Protocol-Version: 1" \ -H "Connect-Timeout-Ms: 1000" \ -H "Content-Type: application/json" \ -d '{}'{
"link": "map[enabled:true status:DISCORD_LINK_STATUS_AWAITING_CONNECTION]",
"authorizeUrl": "https://discord.com/oauth2/authorize?client_id=1298700000000000000&prompt=consent&redirect_uri=https%3A%2F%2Fxmb.gg%2Fintegrations%2Fdiscord%2Fcallback&response_type=code&scope=identify&state=c3RhdGUtcGxhY2Vob2xkZXI"
}