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