Skip to content
Ahmed Castro edited this page Mar 8, 2016 · 22 revisions

get_progress

get method

###Parameters

None

###Returns

  • Json progress stored

  • Error array if any

Example

    $.get("/javascript_api/get_progress",
      function(data)
      {
        game.player1_wins=data["player1_wins"]
        game.player2_wins=data["player2_wins"]
      })

save_progress

post method

Parameters

  • Json user data to be stored

Returns

  • Error array if any

Example

  $.post("/javascript_api/save_progress",{progress{"player1_wins":game.player1_wins,"player2_wins":game.player2_wins},
    function(data)
    {
      console.log(data)
    })

unblock_achievement

post method

###Parameters

  • Achievement id

###Returns

  • Error array if any

get_achievemnts

get method

###Parameters

  • user id

###Returns

  • Error array if any

###Example

Clone this wiki locally