Cannot resolve YouTube class/symbol, YouTube Data API Java sample issue -
i'm trying execute search keyword sample code youtube data api java samples collection.
in order i:
- created new project in intellij idea.
- downloaded latest google-api-java-client-featured.zip.
- added libraries
google-api-java-client-featuredproject viaproject structure → libraries → new project library. - created class
search.java, copy pasted sample.
idea can't resolve youtube class:
/** * define global instance of youtube object, used * make youtube data api requests. */ private static youtube youtube; my question:
can find youtube class or have in order able execute official youtube data api java sample?
it appears there more download. got except actual youtube data api. of writing can found @ https://developers.google.com/api-client-library/java/apis/youtube/v3. @ site there option download .zip file, or obtain through maven or gradle.
i found searching (googling) class com.google.api.services.youtube.youtube, found listed import in sample linked above.
Comments
Post a Comment