Matchdaten abrufen

main
Bayram Demir 2026-11-11 18:49:53 +01:00
parent c760af4b0e
commit 5e9dfcfad2
1 changed files with 10 additions and 1 deletions

View File

@ -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);
}
}
}