Steam.getSchemaForGame()

GetSchemaForGame returns gamename, gameversion and availablegamestats(achievements and stats).

Usage

Hover over inputs/exits for more info.

var Steam = require('machinepack-steam');


// GetSchemaForGame returns gamename, gameversion and availablegamestats(achievements and stats).

Steam.getSchemaForGame({

appid: '620',

key: 'XXXXXXXXXXXXXXXXXXXXXXX',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

appid required

The AppID of the game you want stats of

'620'
key required

Steam API Key

'XXXXXXXXXXXXXXXXXXXXXXX'

Exits

error

An unexpected error occurred.

success

OK.

{ game: 
   { gameName: 'Portal 2',
     gameVersion: '1108170002',
     availableGameStats: { achievements: [], stats: [] } } }