Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 4 of 4 FirstFirst ... 234
Results 46 to 50 of 50
  1. #46
    New Coder
    Join Date
    Apr 2013
    Posts
    36
    Thanks
    15
    Thanked 0 Times in 0 Posts
    Hi fou what can i say awesome basically the amount of users that has this info private is around one in seventy we have over 400 users at steam and there is only a handful dont know if adding text to a cell if it is private stating private maybe in red etc. Thank you fou lu verymuch for replying to me neans a great deal thank you very much

    Btw i am sure you are aware the data for the hours played and played over two weeks is by app id which of course is the aoe2hd appid because it can be by the users other games in total etc i think again i am sure you know what i mean thank you again fou awesome
    Last edited by mdexter; 05-06-2013 at 03:42 PM.

  2. #47
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    I'll take a look and see what the api provides. In that case, it may be simply public; I just based it off of my user profile lookup which provided me with no values for last played time (which is low, but still 7.2 hours in the past two weeks). I won't use the older deprecated one as that may up and disappear at any time.
    Anything not available can easily be replaced with a string like private or unknown.

    Things you should check are to make sure you have a valid api key (it should be free, but I'm not sure if you have to explicitly sign up for it), and check configurations for PHP's allow_url_fopen and XSL library. You can check both on a PHP info page if you don't know where to find it in the control panel:
    PHP Code:
    <?php

    phpinfo
    ();
    Then just search for allow_url_fopen (since I don't want to use curl or sockets to get the image if I don't have to), as well as the XSL which is a library and will be blocked into its own little table with the heading XSL (or similar). I'd much prefer to construct a new XML page with a stylesheet attached if I can instead of manually parsing and building. The XSL's libraries purpose would only be if you need to force the XML to render the HTML if the browser isn't capable of rendering.

    I'll take a look tonight when I get home from work.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  3. Users who have thanked Fou-Lu for this post:

    mdexter (05-06-2013)

  4. #48
    New Coder
    Join Date
    Apr 2013
    Posts
    36
    Thanks
    15
    Thanked 0 Times in 0 Posts
    Fou-Lu thank you for all your help, this means so much to get this right. And it seems that you have an understanding of steam and how all of that works which is awesome. (off topic) you playing stuff on steam ATM?

  5. #49
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    No, I don't have any experience using steam API. But I have a lot of experience using APIs. They do have deficient documentation for results though, so I need you to gather information and email it to me. I've sent you an email address to send to me at.
    I need you to go to these pages, and save the XML and send it to me:
    Code:
    https://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0002/?gameid=221380&format=xml
    
    https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=221380&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&steamid=YYYYYYYYYYYYYY
    
    https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=XXXXXXXXXXXXXXXXXXXXXXX&steamids=YYYYYYYYYYYYYY
    The string of X's replace with your API key, and the string of Y's replace with your steam userid.
    GetUserStatsForGame I'm most interesting in since the API documentation lists nothing for return. I don't care about any of the data within it so you can remove it if you want (your webapi key does have protocols around its usage, you'll want to make sure you read the TOS to make sure you won't violate them), I just want the structural elements and any relations (so I have to know if id matches in two sets, which they should).
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  6. Users who have thanked Fou-Lu for this post:

    mdexter (05-07-2013)

  7. #50
    New Coder
    Join Date
    Apr 2013
    Posts
    36
    Thanks
    15
    Thanked 0 Times in 0 Posts
    ok getting it together now


 
Page 4 of 4 FirstFirst ... 234

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •