View Single Post
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-16-2017 , 21:36   Re: [ANY] SteamWorks
Reply With Quote #517

Quote:
Originally Posted by kamild1996 View Post
I see checking for hours played is possible, but does it allow me to get the account creation date, or age? If so, could someone please show me an example of how the code would look like?
The {HOURS} one is requested based on the user's "game stats", without testing - but according to previously mentioned words in the above posts, it would appear that you can access these "game stats", even if the profile is private.

The creation time of your Steam account is a part of another API, which will be public/private depending on your profile settings, and therefore may or may not work for some profiles.

It is possible to retrieve the creation time on public profiles with any plugins that can communicate with an HTTP(S) backend (for example through SteamWorks and CURL), but it requires a little bit more code than this {HOURS} does, and would require you to supply a Steam Web API Key to the plugin as well.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline