steam-api-node icon indicating copy to clipboard operation
steam-api-node copied to clipboard

GetPlayerSummaries does not return gameid

Open rgooler opened this issue 8 years ago • 1 comments

For whatever reason, this item seems to be dropped from the user object

Raw request:

{
	"response": {
		"players": [
			{
				"steamid": "76561197993843660",
				"communityvisibilitystate": 3,
				"profilestate": 1,
				"personaname": "Jippen Faddoul",
				"lastlogoff": 1513248382,
				"profileurl": "http://steamcommunity.com/id/jippenfaddoul/",
				"avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d.jpg",
				"avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_medium.jpg",
				"avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_full.jpg",
				"personastate": 1,
				"primaryclanid": "103582791434280706",
				"timecreated": 1193700531,
				"personastateflags": 0,
				"gameid": "466300",
				"loccountrycode": "US",
				"locstatecode": "CA"
			}
		]
		
	}
}

And what I get from this library:

Player {
  steamId: '76561197993843660',
  communityVisibilityState: 3,
  profileState: 1,
  personaName: 'Jippen Faddoul',
  lastLogoff: 1513248382,
  profileUrl: 'http://steamcommunity.com/id/jippenfaddoul/',
  avatar: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d.jpg',
  avatarMedium: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_medium.jpg',
  avatarFull: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/c2/c21bbf84b0495412e249225db40b5e7f75d91a7d_full.jpg',
  personaState: 'Online',
  primaryClanId: '103582791434280706',
  timecreated: 1193700531,
  personaStateFlags: undefined,
  countryCode: 'US',
  stateCode: 'CA' }

Yet I can't seem to find why this bit of data is left out.

rgooler avatar Dec 15 '17 04:12 rgooler

I think the issue is not with API call but with the node code, as in how you are parsing the object. Check with the network call response, you will know what data actually coming.

garvitkhamesra avatar Mar 13 '18 18:03 garvitkhamesra