Skip to content

A Java wrapper for the Dota 2-related methods of the Steam Web API (a work in progress).

License

Notifications You must be signed in to change notification settings

wannesvr/dota2api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dota2Api

A wrapper for all Dota related methods of the Steam Web API. Note that this is a work in progress and not all API methods are available yet.

Usage

Using the wrapper is very easy as seen in the example below. Create a client, create a request using the Builder and send it!

import com.github.wannesvr.core.config.*;
import com.github.wannesvr.core.*;
import com.github.wannesvr.request.*;
import com.github.wannesvr.model.match.*;

class Example {
    public static void main(String[] args){
        Dota2ApiClient client = new Dota2ApiClient("API_KEY");
        
        MatchHistoryRequest request = new MatchHistoryRequest.Builder()
           .gameMode(GameMode.ALL_PICK)
           .matchesRequested(5)
           .build();
        
        MatchHistory matchHistory = client.send(request, MatchHistory.class);
    }
}

Changelog

2.0.0

  • Changed the datatype of start_time for MatchDetail and MatchHistoryDetail to Instant.

About

A Java wrapper for the Dota 2-related methods of the Steam Web API (a work in progress).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages