I'm trying to execute the Search by keyword sample code from YouTube Data API Java Samples collection.
In order to do that I:
- Created a new project in IntelliJ IDEA.
- Downloaded latest google-api-java-client-featured.zip.
- Added the libraries from the
google-api-java-client-featuredto the project via Project Structure → Libraries → New Project Library. - Created a class Search.java and copy pasted the sample.
IDEA can't resolve YouTube class:
/**
* Define a global instance of a Youtube object, which will be used
* to make YouTube Data API requests.
*/
private static YouTube youtube;
My question:
Where can I find this YouTube class or what have I to do in order to be able to execute the official YouTube Data API Java sample?