Having trouble importing “google.api.services.samples.youtube.cmdline.Auth;”?

后端 未结 1 528
心在旅途
心在旅途 2021-01-03 22:06

I followed this tutorial https://developers.google.com/youtube/v3/code_samples/java#search_by_keyword

to retreive youtube videos based on keyword using YouTubeData A

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 23:04

    These two defines can be found in the youtube example: Auth.java file from example

    Are you can just replace the Builder string as follows:

    new YouTube.Builder(new NetHttpTransport(), new JacksonFactory(), new HttpRequestInitializer() 
    

    This will do the trick, same as finding the defines.

    Hopes this helps, BR, Adrian.

    0 讨论(0)
提交回复
热议问题