jonbo / node-steam-webapi

Steam WebAPI wrapper for node.js
MIT License
48 stars 20 forks source link

getOwnedGames steamObj; all parameters required? #10

Open nmalacarne opened 9 years ago

nmalacarne commented 9 years ago

Leaving out certain steamObj parameters while using the getOwnedGames method results in thrown Errors.

/node_modules/steam-webapi/index.js:129 throw new Error("Missing required field: "+key); Error: Missing required field: include_appinfo

/node_modules/steam-webapi/index.js:129 throw new Error("Missing required field: "+key); Error: Missing required field: include_played_free_games

/node_modules/steam-webapi/index.js:129 throw new Error("Missing required field: "+key); Error: Missing required field: appids_filter

Is this intended behavior? Documentation for getOwnedGames states: 'Free games are excluded by default.'

jonbo commented 9 years ago

Ah yes, that does seem quite confusing. But, it's listed as a non-optional field in getSupportedAPIList(), which the library respects, over the deceptive description.