Matchdaten abrufen
parent
c760af4b0e
commit
5e9dfcfad2
|
|
@ -1,7 +1,16 @@
|
|||
import java.net.URL;
|
||||
import java.util.Scanner;
|
||||
|
||||
public class DotaMatchTracker {
|
||||
private static final String MATCH_ID = "9077739037";
|
||||
private static final String MATCH_URL = "https://overseerdota.com/api/matches/" + MATCH_ID;
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
Scanner input = new Scanner(new URL(MATCH_URL).openStream(), "UTF-8");
|
||||
String json = "";
|
||||
while (input.hasNextLine()) json += input.nextLine();
|
||||
input.close();
|
||||
|
||||
System.out.println(json);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue