Jump to content
McKay Development

Recommended Posts

Posted (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 by timgfx

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...