Skip to content

Instantly share code, notes, and snippets.

@jimmycuadra
Created February 6, 2016 12:42
Show Gist options
  • Select an option

  • Save jimmycuadra/58b5a01ef48876e87374 to your computer and use it in GitHub Desktop.

Select an option

Save jimmycuadra/58b5a01ef48876e87374 to your computer and use it in GitHub Desktop.
Ruma's first user registration
$ ruma start &
[1] 17673
curl -i -H "Content-Type: application/json" http://localhost:3000/_matrix/client/r0/register -d '{"password":"secret"}'
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Date: Sat, 06 Feb 2016 12:41:42 GMT
Content-Type: application/json; charset=utf-8
{"access_token":"fake access token","home_server":"fake home server","user_id":"tJfCJcClNRFn"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment