From 8700406c92829fb92bd982561e4dbf053f264224 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Thu, 14 Apr 2016 17:24:11 +0100 Subject: [PATCH] Use /r0 login API --- supporting-docs/howtos/client-server.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/supporting-docs/howtos/client-server.rst b/supporting-docs/howtos/client-server.rst index 657e8bfe..26a2f7fc 100644 --- a/supporting-docs/howtos/client-server.rst +++ b/supporting-docs/howtos/client-server.rst @@ -54,7 +54,7 @@ Login ----- The aim when logging in is to get an access token for your existing user ID:: - curl -XGET "https://localhost:8008/_matrix/client/api/v1/login" + curl -XGET "https://localhost:8008/_matrix/client/r0/login" { "flows": [ @@ -64,7 +64,7 @@ The aim when logging in is to get an access token for your existing user ID:: ] } - curl -XPOST -d '{"type":"m.login.password", "user":"example", "password":"wordpass"}' "https://localhost:8008/_matrix/client/api/v1/login" + curl -XPOST -d '{"type":"m.login.password", "user":"example", "password":"wordpass"}' "https://localhost:8008/_matrix/client/r0/login" { "access_token": "QGV4YW1wbGU6bG9jYWxob3N0.vRDLTgxefmKWQEtgGd",