Class YoutubeSearchEngineInitializer
java.lang.Object
org.prithvidiamond1.AudioPlayer.Youtube.YoutubeSearchEngineInitializer
Class for initializing a YouTube Search Engine API instance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.api.services.youtube.YouTube
Build and return an authorized API client service.
-
Constructor Details
-
YoutubeSearchEngineInitializer
public YoutubeSearchEngineInitializer()
-
-
Method Details
-
getService
public static com.google.api.services.youtube.YouTube getService() throws GeneralSecurityException, IOExceptionBuild and return an authorized API client service.- Returns:
- an authorized API client service
- Throws:
GeneralSecurityException
- A general type safety enforcing exceptionIOException
- an input output exception
-