Package io.github.thoroldvix.internal
Class TranscriptApiFactory
java.lang.Object
io.github.thoroldvix.internal.TranscriptApiFactory
Responsible for creating instances of
YoutubeTranscriptApi
.-
Method Summary
Modifier and TypeMethodDescriptionstatic YoutubeTranscriptApi
Creates a new instance ofYoutubeTranscriptApi
using the default YouTube client.static YoutubeTranscriptApi
createWithClient
(YoutubeClient client) Creates a new instance ofYoutubeTranscriptApi
using the specifiedYoutubeClient
.
-
Method Details
-
createDefault
Creates a new instance ofYoutubeTranscriptApi
using the default YouTube client.- Returns:
- A new instance of
YoutubeTranscriptApi
-
createWithClient
Creates a new instance ofYoutubeTranscriptApi
using the specifiedYoutubeClient
.- Parameters:
client
- TheYoutubeClient
to be used for YouTube interactions- Returns:
- A new instance of
YoutubeTranscriptApi
-