Page 2 of 30 FirstFirst 1 2 3 4 12 ... LastLast
Results 11 to 20 of 296

Thread: THINGS YOU SHOULD KNOW BEFORE STARTING

  1. #11
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    Quote Originally Posted by 56k_Rockstar View Post
    So currently only the GetHeroes API call works right? Because thats the only request I get data from and the call is made to a different EndPoint (not $baseUrl but https://api.steampowered.com/IEconDOTA2_570/) and those are disabled at the moment, right?

    I just looked into this stuff for a few minutes and called a bit against the API via PHP like this:

    <snip>

    I'm not a big coder so please look over the quick'n'dirtyness
    This thread isn't the place for asking for help! it is merely here to display a the list of FAQ because (I for one) got sick of answering the same questions.

    in future please post in a new thread with any questions.

    As stated in the FAQ section above, the stats API is down until further notice, although if u want to test your algorithm the dota2 test api is still up.
    see the original post for details.

  2. #12
    Basic Member
    Join Date
    Feb 2012
    Posts
    12
    Quote Originally Posted by 56k_Rockstar View Post
    So currently only the GetHeroes API call works right? Because thats the only request I get data from and the call is made to a different EndPoint (not $baseUrl but https://api.steampowered.com/IEconDOTA2_570/) and those are disabled at the moment, right?

    I just looked into this stuff for a few minutes and called a bit against the API via PHP like this:

    PHP Code:
    <?php
        $matchID 
    "51730xyz";
        
    $key "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
        
    $baseUrl 'https://api.steampowered.com/IDOTA2Match_570/';

        
    /* Get Match Details */
        
    $url[0] = $baseUrl.'GetMatchDetails/V001/?key='.$key.'&match_id='.$matchID;    
        

        
    /* Get 25 latest matches from AM */
        
    $url[1] = $baseUrl.'GetMatchHistory/V001/?format=JSON&language=en_us&key='.$key.'&hero_id=1';
        

        
    /* Get list of up2date heroes */
        
    $url[2] = 'https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/?key='.$key.'&language=en_us&format=JSON';        


        for(
    $i 0$i<count($url); $i++) {
            
    $response file_get_contents$url[$i], $info);       // here happens the request to the api and the response is saved
            
    if($response != null ) {
                
    print_r($response);                                // print response data, its an array so for rapid coding its enough
            
    } else {
            
    print_r('empty response<br/>');
            
    sleep(1);                                              // to stay in the limits of 1 req per sec
            
    }
        }
    ?>

    I'm not a big coder so please look over the quick'n'dirtyness

    Don`t use file_get_contents for this kind of stuff, use curl its much faster and more efficent.

  3. #13
    How I can get data of dota2 profile (not steam!) such as current player level, win rate etc. ? That even possible?

  4. #14
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    Quote Originally Posted by Fingerling View Post
    How I can get data of dota2 profile (not steam!) such as current player level, win rate etc. ? That even possible?
    there were methods of getting level/etc, but IDK if they still work...
    to get winrate - you have to get every single one of their matches and calculate it.

  5. #15
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    Also.. now that i've seen some mods lurking around this sub-forum.. can one of you pretty please sticky this for me?
    I thought a central FAQ would be the perfect thing to sticky so people have a good guide outlining how things work - rather than using search or trawling through the many pages of posts.

    I'll get to updating it when I get back from my holiday next week.

    Thanks.

  6. #16
    Basic Member
    Join Date
    Dec 2011
    Posts
    23
    GetMatchDetails no longer gives you the replay_salt.
    You should probably note this at least until it is fixed.

  7. #17
    Basic Member
    Join Date
    Sep 2011
    Location
    Lille, France
    Posts
    52
    Quote Originally Posted by jeppew View Post
    GetMatchDetails no longer gives you the replay_salt.
    You should probably note this at least until it is fixed.
    It won't be fixed, replay salt will no longer appear if someone has privacy on in the game.

  8. #18
    Basic Member
    Join Date
    Dec 2011
    Posts
    23
    Quote Originally Posted by papa_pointnet View Post
    It won't be fixed, replay salt will no longer appear if someone has privacy on in the game.
    Has there been a statement from Valve about this?
    I assumed that they temporarily disabled it because they haven't fixed the account ID's in the replays themselves, and that they would put the replay_salt back when that's done.

  9. #19
    Basic Member
    Join Date
    Sep 2011
    Location
    Lille, France
    Posts
    52
    Quote Originally Posted by jeppew View Post
    Has there been a statement from Valve about this?
    I assumed that they temporarily disabled it because they haven't fixed the account ID's in the replays themselves, and that they would put the replay_salt back when that's done.
    Why not, but they'll need to rewrite their HLTV server so he won't wrote steamid's in the replay and then change the replay client to not rely anymore on steamid's. Lots of work, Valve time ...

  10. #20
    Basic Member MuppetMaster42's Avatar
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    585
    Quote Originally Posted by jeppew View Post
    GetMatchDetails no longer gives you the replay_salt.
    You should probably note this at least until it is fixed.
    as noted in my previous post, I'll update the main post when I get back from my holidays.
    i get back on the 2nd of feb australian time, so give it about 8-10 days total for me to arrive home and get over the 20hr plane flight/jetlag.

Tags for this Thread

Posting Permissions

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