-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Ahmed Castro edited this page Mar 8, 2016
·
22 revisions
get method
###Parameters
None
###Returns
-
Json progress stored
-
Error array if any
$.get("/javascript_api/get_progress",
function(data)
{
game.player1_wins=data["player1_wins"]
game.player2_wins=data["player2_wins"]
})
post method
- Json user data to be stored
- Error array if any
$.post("/javascript_api/save_progress",{progress{"player1_wins":game.player1_wins,"player2_wins":game.player2_wins},
function(data)
{
console.log(data)
})
post method
###Parameters
- Achievement id
###Returns
- Error array if any
get method
###Parameters
- user id
###Returns
- Error array if any
###Example