Quote:
Originally Posted by TheBOSS
Linux server
|
The problem is ... private Steam profiles have this value hidden, so you can't get it.
@CowGod So maybe show diff message, if you don't have 'timecreated' value.
Also you can add format=vdf to get response as VDF -> KeyValues, so you don't need 'REST in Pawn' extension.
API response:
PHP Code:
// Get API response as vdf -> keyvalues, so you don't need to use JSON parser.
http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXXXXXXXXXXXXXXXX&steamids=76561198364662582&format=vdf
Public:
"response"
{
"players"
{
"0"
{
"steamid" "76561198364662582"
"communityvisibilitystate" "3"
"profilestate" "1"
"personaname" "NomisCZ (-N-)"
"lastlogoff" "1553462945"
"commentpermission" "1"
"profileurl" "https://steamcommunity.com/id/olympic-nomis/"
"avatar" "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fb/fbaed0beb2e56a2d30abf2e0b2aeaeb4db513dbd.jpg"
"avatarmedium" "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fb/fbaed0beb2e56a2d30abf2e0b2aeaeb4db513dbd_medium.jpg"
"avatarfull" "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fb/fbaed0beb2e56a2d30abf2e0b2aeaeb4db513dbd_full.jpg"
"personastate" "0"
"primaryclanid" "103582791430395180"
"timecreated" "1486318143"
"personastateflags" "0"
"loccountrycode" "CZ"
}
}
}
Private:
"response"
{
"players"
{
"0"
{
"steamid" "76561198364662582"
"communityvisibilitystate" "1"
"profilestate" "1"
"personaname" "NomisCZ (-N-)"
"lastlogoff" "1553462945"
"commentpermission" "1"
"profileurl" "https://steamcommunity.com/id/olympic-nomis/"
"avatar" "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fb/fbaed0beb2e56a2d30abf2e0b2aeaeb4db513dbd.jpg"
"avatarmedium" "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fb/fbaed0beb2e56a2d30abf2e0b2aeaeb4db513dbd_medium.jpg"
"avatarfull" "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fb/fbaed0beb2e56a2d30abf2e0b2aeaeb4db513dbd_full.jpg"
"personastate" "0"
}
}
}
__________________