title: get youtube video basic info in java youtube api v3?
body: <p>To be precise I want to get a youtube video Basic info such as: Views, Likes, Dislikes.</p>
  
  <p>I found this question about: <a href="https://stackoverflow.com/questions/33564057/get-view-count-using-google-youtube-api">Get view count using Google Youtube API</a></p>
  
  <p>But I am getting the error at <code>Auth.HTTP_TRANSPORT and Auth.JSON_FACTORY</code> class doesn't exist error.</p>
  
  <p>By your request my code:</p>
  
  <pre><code> import com.google.api.client.googleapis.json.GoogleJsonResponseException;
   import com.google.api.client.http.HttpRequest;
   import com.google.api.client.http.HttpRequestInitializer;
   import com.google.api.services.youtube.YouTube;
   import com.google.api.services.youtube.model.Video;
   import com.google.api.services.youtube.model.VideoListResponse;
  
   import java.io.IOException;
   import java.math.BigInteger;
  
  public class DBConnect {
      public String getyoutubeitemfull_details(String URI) throws SQLException, IOException{
          try {
              YouTube youtube = new YouTube.Builder(Auth.HTTP_TRANSPORT, Auth.JSON_FACTORY, new HttpRequestInitializer() {
                  @Override
                  public void initialize(HttpRequest request) throws IOException {
                  }
          }).setApplicationName("APP_ID").build();
  
              String apiKey = "API_KEY";
              YouTube.Videos.List listVideosRequest = youtube.videos().list("statistics");
              listVideosRequest.setId("lf_wVfwpfp8"); // add list of video IDs here
              listVideosRequest.setKey(apiKey);
              VideoListResponse listResponse = listVideosRequest.execute();
  
              Video video = listResponse.getItems().get(0);    
  
              BigInteger viewCount = video.getStatistics().getViewCount();
  
              System.out.println(" ViewCount: " + viewCount);
                System.out.println("\n-------------------------------------------------------------\n");
  
          } catch (GoogleJsonResponseException e) {
              System.err.println("There was a service error: " + e.getDetails().getCode() + " : "
                  + e.getDetails().getMessage());
          } catch (IOException e) {
              System.err.println("There was an IO error: " + e.getCause() + " : " + e.getMessage());
          } catch (Throwable t) {
              t.printStackTrace();
          }
          System.out.println("Youtube");
          return null;
      }
  }
  </code></pre>