c -> s
{
- "header" : {action : "authentification", version : 3},
+ "header" : {action : "register", version : 3},
"login" : "paul",
- "password" : "IJKJDHHSAD9081238"
+ "password" : "IJKJDHHSAD9081238",
+ "profile" : { .. } // voir <profile>
}
ou
{
s -> c
{
"reply" : "register" | "authentification",
- "status" : "auth_not_registered",
- "cookie" : "LKJDLAKSJBFLKASN",
- "id" : 193,
- "css" : "css/1/euphorik.css",
- "main_page" : 1
- }
-ou
- {
- "reply" : "register" | "authentification",
- "status" : "auth_registered",
+ "status" : "auth_registered" | "auth_not_registered",
"cookie" : "LKJDLAKSJBFLKASN",
"id" : 193,
- "nick" : "Paul",
"login" : "paul49",
- "email" : "paul@pierre.com",
- "css" : "css/3/euphorik.css",
- "chat_order" : "chrono" | "reverse",
- "nick_format" : "nick" | "login" | "nick_login",
- "view_times" : true | false,
- "view_tooltips" : true | false,
- "conversations" : [{"root" : 3, "minimized" : true},
"ek_master" : true | false,
- "ostentatious_master" : "invisible" | "light" | "heavy"
+ "profile" : <profile>
}
=== Profile ===
-c -> s
+<profile>
{
- "header" : {action : "set_profile", version : 3},
- "cookie" : "LKJDLAKSJBFLKASN",
- "login" : "paul49",
- "password" : "IJKJDHHSAD9081238",
"nick" : "Paul",
"email" : "paul@pierre.com",
"css" : "css/3/euphorik.css",
"conversations" : [{"root" : 3, "minimized" : true},
"ostentatious_master" : "invisible" | "light" | "heavy"
}
+
+c -> s
+ {
+ "header" : {action : "set_profile", version : 3},
+ "cookie" : "LKJDLAKSJBFLKASN",
+ "login" : "paul49",
+ "password" : "IJKJDHHSAD9081238",
+ "profile" : <profile>
+ }
s -> c
<ok>
"root" : 453,
"answer_to" : [
{ "id" : 123, "nick" : "Pierre", "login" : "pierre_45" }
- ]
+ ],
"ek_master" : true | false,
- "ostentatious_master" : "invisible" | "light" | "heavy"
+ "ostentatious_master" : "invisible" | "light" | "heavy",
+ "last_modification" : "Hier 17:26:54"
}
c -> s
{
"reply" : "message_updated",
"message_id" : 123,
- "content" : "Salut +++ poulpe"
+ "content" : "Salut poulpe",
+ "last_modification" : "Hier 17:26:54"
}
ou
{