Package io.github.thoroldvix.api
Interface YoutubeClient
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Responsible for sending GET requests to YouTube.
-
Method Summary
-
Method Details
-
get
Sends a GET request to the specified URL and returns the response body.- Parameters:
url
- The URL to which the GET request is made.headers
- A map of additional headers to include in the request.- Returns:
- The body of the response as a
String
. - Throws:
TranscriptRetrievalException
- If the request to YouTube fails.
-