var game = new App42ScoreBoard();
var gameName = "Game02";
var userName = "Nick";
// In order to use the various functions available under a particular API, a developer will have to call the
// App42.initialize method by passing the apiKey and the secretKey.
App42.initialize("<API_KEY>","<SECRET_KEY>");
game.saveUserScore(gameName, userName, 40000,{
success: function(object) {
// Game Object creation
},
error: function(error) {
// Game exception handled
}
});

var game = new App42ScoreBoard();
var gameName = "Game02";
// In order to use the various functions available under a particular API, a developer will have to call the
// App42.initialize method by passing the apiKey and the secretKey.
App42.initialize("<API_KEY>","<SECRET_KEY>");
game.getTopRankings(gameName,{
success: function(object) {
// Game Object creation
},
error: function(error) {
// Game exception handled
}
});