Skip to content

Instantly share code, notes, and snippets.

@pedrofaria
Created June 1, 2010 17:11
Show Gist options
  • Save pedrofaria/421186 to your computer and use it in GitHub Desktop.
Save pedrofaria/421186 to your computer and use it in GitHub Desktop.
POST: /game/create
=====================================================
DATA: {"type":"PIFPAF"}
=====================================================
{"game_id":"ce01f40b7bfc73607c8d54dbe6069ea7","id":"1","status":true}
POST: /game/addplayer/ce01f40b7bfc73607c8d54dbe6069ea7
=====================================================
DATA: {"site_id":123,"name":"Pedro Faria"}
=====================================================
{"game_id":"ce01f40b7bfc73607c8d54dbe6069ea7","player_id":"0cd74027bdbcc0bda088cb037f19a421","status":true}
POST: /game/start/ce01f40b7bfc73607c8d54dbe6069ea7
=====================================================
DATA: ""
=====================================================
{"status":false,"code":201,"debug":[{"file":"\/web\/pedro\/eusouopedro.com\/icards\/controllers\/icards.php","line":66,"function":"start_game","class":"iCards","type":"->","args":[]},{"function":"game_start","args":[]},{"file":"\/web\/pedro\/eusouopedro.com\/icards\/lib\/limonade.php","line":388,"function":"call_user_func","args":["game_start"]},{"file":"\/web\/pedro\/eusouopedro.com\/icards\/index.php","line":74,"function":"run","args":[]}]}
POST: /game/addplayer/ce01f40b7bfc73607c8d54dbe6069ea7
=====================================================
DATA: {"site_id":321,"name":"Priscilla Lima"}
=====================================================
{"game_id":"ce01f40b7bfc73607c8d54dbe6069ea7","player_id":"ab8f791f990a954df55d01b8ff64e5f0","status":true}
POST: /game/start/ce01f40b7bfc73607c8d54dbe6069ea7
=====================================================
DATA: ""
=====================================================
{"game_id":"ce01f40b7bfc73607c8d54dbe6069ea7","started":true,"status":true}
object(stdClass)#10 (3) {
["game_id"]=>
string(32) "ce01f40b7bfc73607c8d54dbe6069ea7"
["started"]=>
bool(true)
["status"]=>
bool(true)
}
GET: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/0cd74027bdbcc0bda088cb037f19a421
=====================================================
DATA: []
=====================================================
{"commands":[{"command":"READY","data":[]}],"status":true}
GET: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/0cd74027bdbcc0bda088cb037f19a421
=====================================================
DATA: []
=====================================================
{"commands":[],"status":true}
GET: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/ab8f791f990a954df55d01b8ff64e5f0
=====================================================
DATA: []
=====================================================
{"commands":[{"command":"READY","data":[]}],"status":true}
GET: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/ab8f791f990a954df55d01b8ff64e5f0
=====================================================
DATA: []
=====================================================
{"commands":[],"status":true}
POST: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/0cd74027bdbcc0bda088cb037f19a421
=====================================================
DATA: {"command":"IMREADY"}
=====================================================
{"commands":[],"status":true}
POST: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/0cd74027bdbcc0bda088cb037f19a421
=====================================================
DATA: {"command":"IMREADY"}
=====================================================
{"status":false,"code":103,"debug":[{"file":"\/web\/pedro\/eusouopedro.com\/icards\/lib\/icards.php","line":75,"function":"check_game","class":"iCards","type":"->","args":[{"command":"IMREADY","params":[],"player_id":"0cd74027bdbcc0bda088cb037f19a421"}]},{"file":"\/web\/pedro\/eusouopedro.com\/icards\/controllers\/icards.php","line":110,"function":"run","class":"iCards","type":"->","args":[{"command":"IMREADY","params":[],"player_id":"0cd74027bdbcc0bda088cb037f19a421"}]},{"function":"game_send_cmd","args":[]},{"file":"\/web\/pedro\/eusouopedro.com\/icards\/lib\/limonade.php","line":388,"function":"call_user_func","args":["game_send_cmd"]},{"file":"\/web\/pedro\/eusouopedro.com\/icards\/index.php","line":74,"function":"run","args":[]}]}
POST: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/ab8f791f990a954df55d01b8ff64e5f0
=====================================================
DATA: {"command":"IMREADY"}
=====================================================
{"commands":[],"status":true}
GET: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/0cd74027bdbcc0bda088cb037f19a421
=====================================================
DATA: []
=====================================================
{"commands":[{"command":"CLEARSCREEN","data":[]},{"command":"LOCK","data":[]},{"command":"PLAYERS","data":[{"id":"0cd74027bdbcc0bda088cb037f19a421","name":"Pedro Faria"},{"id":"ab8f791f990a954df55d01b8ff64e5f0","name":"Priscilla Lima"}]}],"status":true}
GET: /cmd/ce01f40b7bfc73607c8d54dbe6069ea7/ab8f791f990a954df55d01b8ff64e5f0
=====================================================
DATA: []
=====================================================
{"commands":[],"status":true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment