1

i tried code youtube api example here: https://developers.google.com/youtube/v3/docs/captions/list#examples but i can import com.google.api.services.samples.youtube.cmdline.Auth and com.google.common.collect.Lists. i imported all jar file from here: developers.google. com/api-client-library/java/apis/youtube/v3 but i get error like thatenter image description here

Robber David
  • 51
  • 1
  • 1
  • 4

1 Answers1

1

See thie SO entry Having trouble importing "google.api.services.samples.youtube.cmdline.Auth;"?

The class that you're looking for is probably not part of the standard API. However you can build the JAR from the Github from here

https://github.com/youtube/api-samples/blob/master/java/src/main/java/com/google/api/services/samples/youtube/cmdline/Auth.java

Community
  • 1
  • 1
11thdimension
  • 10,333
  • 4
  • 33
  • 71