From c71c1e225bb94801f509edd2fc589945b4080d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 17 Dec 2025 10:36:44 +0100 Subject: [PATCH] Fix request examples syntax highlighting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kévin Commaille --- content/application-service-api.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/content/application-service-api.md b/content/application-service-api.md index 0ab518de..42b1b985 100644 --- a/content/application-service-api.md +++ b/content/application-service-api.md @@ -446,11 +446,12 @@ achieved by including the `as_token` on a `/register` request, along with a login type of `m.login.application_service` to set the desired user ID without a password. -``` +```http POST /_matrix/client/v3/register Authorization: Bearer YourApplicationServiceTokenHere +``` -Content: +```json { "type": "m.login.application_service", "username": "_irc_example" @@ -476,11 +477,12 @@ along with a login type of `m.login.application_service`: {{% added-in v="1.2" %}} -``` +```http POST /_matrix/client/v3/login Authorization: Bearer YourApplicationServiceTokenHere +``` -Content: +```json { "type": "m.login.application_service", "identifier": {