https://api.kraml.fr/create_account
https://api.kraml.fr/connect
https://api.kraml.fr/disconnect
https://api.kraml.fr/status
https://api.kraml.fr/add_friend
https://api.kraml.fr/delete_friend
https://api.kraml.fr/ping
https://api.kraml.fr/join
https://api.kraml.fr/room_message
https://api.kraml.fr/pv_message
https://api.kraml.fr/connected_users
https://api.kraml.fr/friends
https://api.kraml.fr/rooms
https://api.kraml.fr/infos
https://api.kraml.fr/room_users
https://api.kraml.fr/get_available_languages
https://api.kraml.fr/picture
[
{"response": ...
},
{"response": ...
}
]
Each response have a type, and some data depending of the type.{
"response":"conected",
"username":"<username>",
"anonymous":true,
"reping":false,
}
- with <username> the effective user connected on kraml{
"response":"authentication_failed",
"reason":"anonymous_user_already_connected",
"reping":false
}
- Give you the reason why rejected{
"response":"userCreated",
"message":"MSG account_created_successfully"
}{
"response":"disconnected",
"reping":false
}{
"response":"presence",
"presences":[
{
"type":"status_change",
"from":"temp_user_test",
"show":"chat",
"status":"apiTest",
"age":"0",
"sex":"",
"location":""
}
],
"reping":false
}{
"response":"presence",
"presences":[
{
"type":"room_change",
"from":"temp_user_test",
"show":"chat",
"status":"apiTest",
"age":"0",
"sex":"",
"location":""
}
],
"reping":false
}{
"response":"friend_accepted",
"reping":false
}{
"response":"pinged",
"body":"[..some data..]",
"reping":true
}{
"response":"message",
"messages":[
{
"type":"groupchat",
"from":"temp_user_1",
"to":"temp_user_2",
"text":"My message"
}
]
}{
"response":"message_sent",
"body":"Hi Man",
"reping":false
}{
"response":"search_results",
"results":[
{
"user":"monuser",
"age":"22",
"sex":"M",
"location":"My City",
"show":"chat"
},{
"user":"user2",
"age":"26",
"sex":"F",
"location":"Sexy town",
"show":"dnd"
}
],
"paging": {
"previous":"0",
"next":"25"
}
}{
"response":"picture",
"mode":"url",
"reping":false,
"data":"http:\/\/kraml.fr\/v2\/pictures\/default.jpg"
}{
"response":"error",
"error_code":"3",
"error_message":"not_connected",
"reping":false
}
- Here example calling the ping command without authenticate{
"response":"ping_error",
"request":"[..some data..]",
"reping":true
}