2

I am trying to do the youtube example here about how to download captions using JAVA. I was able to import all the libraries that they used except one, com.google.api.services.samples.youtube.cmdline.Auth. I don't konw where to find this libary to import. This is similar to this question but im not sure how the given answer helps.

the two lines that need this import are

 Credential credential = Auth.authorize(scopes, "captions");

youtube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, credential)
                .setApplicationName("youtube-cmdline-captions-sample").build();
Community
  • 1
  • 1
Aaron
  • 203
  • 1
  • 4
  • 15
  • As the question you linked to explained, the file you are looking for is at https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/Auth.java – Chase Nov 29 '16 at 03:38

1 Answers1

-1

The library you are looking for is here: https://github.com/google/gdata-java-client

The maven dependency is:

<dependency>
    <groupId>com.google.gdata</groupId>
    <artifactId>core</artifactId>
    <version>1.47.1</version>
</dependency>
randers
  • 5,031
  • 5
  • 37
  • 64