Java API
Documentation of Java API's
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://nfl-schedule.p.rapidapi.com/v1/schedules"))
.header("X-RapidAPI-Key", "2deba3c7c5msh59e591f91803406p14659ajsn14474595701e")
.header("X-RapidAPI-Host", "nfl-schedule.p.rapidapi.com")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());