68
edits
(→Leaving a Room: Basic auth for leaving) |
|||
| Line 385: | Line 385: | ||
==== Leaving a Room ==== | ==== Leaving a Room ==== | ||
* For a desktop client user, the "Authorization" header field is populated with the HAWK token (using a scheme of "Hawk"), just like it is for other requests. | |||
* For the standalone client, the "Authorization" header field is encoded using [http://tools.ietf.org/html/rfc1945#section-11.1 Basic authentication]. The user ID portion is the sessionToken provided to the user when they joined the room, and the password is blank. | |||
POST /rooms/QzBbvGmIZWU HTTP/1.1 | POST /rooms/QzBbvGmIZWU HTTP/1.1 | ||
| Line 394: | Line 397: | ||
{ | { | ||
"action": "leave | "action": "leave" | ||
} | } | ||
edits