我需要算我的關於Java的訂閱,但我不能確定,請大家幫幫我!的Youtube API V3我不能指望我的用戶
我用這個代碼:
HttpRequestInitializer httpRequestInitializer = new HttpRequestInitializer() {
public void initialize(HttpRequest request) throws IOException {
}
};
YouTube youTube = new YouTube.Builder(new NetHttpTransport(), new JacksonFactory(), httpRequestInitializer)
.setApplicationName("<Your-Application-Name>")
.build();
YouTube.Channels.List search = youTube.channels().list("statistics");
search.setForUsername("codeherenow");
search.setKey("<Insert-API-Key>");
ChannelListResponse response = search.execute();
List<Channel> channels = response.getItems();
for (Channel channel : channels) {
System.out.println(channel.getStatistics().getSubscriberCount());
}
你什麼意思,你不能?你不能準確地做什麼? – Tavo
我的意思是我無法修復該代碼 –