Problems with Youtube Api code - Class import

Asked

Viewed 33 times

1

Good night!

I’m trying to do a search using the youtube API, but I’m having difficulties regarding a class : "com.google.api.services.samples.youtube.cmdline.Auth;". I am not finding it on the internet. I ask for help in finding this class for import or a way around the problem.

  • Have you downloaded the lib from here? https://developers.google.com/api-client-library/java/google-api-java-client/download

  • Good afternoon, I already downloaded yes. But it is the only one that does not find.

  • I’m struggling with this snippet: youtube = new Youtube.Builder(Auth.HTTP_TRANSPORT,Auth.JSON_FACTORY, new Httprequestinitializer() { @Override public void initialize(Httprequest request) throws Ioexception { } }). setApplicationName("youtube-cmdline-geolocationsearch-sample"). build();

1 answer

-1

(very) old question, but for record purposes, it needs this import as well:

    <dependency>
      <groupId>com.google.oauth-client</groupId>
      <artifactId>google-oauth-client-jetty</artifactId>
      <version>1.20.0</version>
    </dependency>
  • downvote without comment does not help at all, there should be downvote downvote

Browser other questions tagged

You are not signed in. Login or sign up in order to post.