timgfx Posted May 1, 2016 Report Share Posted May 1, 2016 (edited) gamesPlayed(apps)apps - An array, object, string, or number (see below)Reports to Steam that you're playing or using zero or more games/apps. To exit all games/apps, use an empty array [].To play a single game by AppID, use a single integer (e.g. 440)To play a single non-Steam game by name, use a single string (e.g. "Minecraft")To play a single game by AppID and name (the client-provided name is what is given to the WebAPI and mobile app), use an object of this format:{"game_id": 440,"game_extra_info": "Team Fortress 2"}You can use multiple apps by providing an array of any mixture of the above formats.You can use multiple apps by providing an array of any mixture of the above formats. How would I do that? Like this? client.gamesPlayed({ "game_id": 440 }, { "game_id": 730 }); Edited May 1, 2016 by timgfx Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 1, 2016 Report Share Posted May 1, 2016 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array Quote Link to comment Share on other sites More sharing options...
timgfx Posted May 1, 2016 Author Report Share Posted May 1, 2016 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayI already tried this but it didn't work. Or doesn't multiple games mean that you can farm hours with multiple accounts? It did show I played the game on the date of today but it only showed that the first game in the array was being played Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted May 1, 2016 Report Share Posted May 1, 2016 The profile will only show the first game, but the "recently played" section will show all of them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.