【问题标题】:Daily Limit for Unauthenticated Use Exceeded with YouTube Data APIYouTube 数据 API 超出了未经身份验证使用的每日限制
【发布时间】:2017-09-06 02:19:20
【问题描述】:

这是获取数据的代码:

YouTube youtube = new YouTube.Builder(new NetHttpTransport(), new JacksonFactory(), new HttpRequestInitializer() {
    public void initialize(HttpRequest request) throws IOException {}
}).setApplicationName("youtube-channel-fetcher").build();
String artist = "";
try{
    artist = youtube.videos().list("snippet").setId(ytID).setKey(Utils.getYouTubeKey()).setFields("items(snippet/channelTitle)").execute().getItems().get(0).getSnippet().getChannelTitle();
} catch (ArrayIndexOutOfBoundsException ignored){}

作为回应,我收到以下错误:

"code" : 403,
"errors" : [ {
"domain" : "usageLimits",
"message" : "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"reason" : "dailyLimitExceededUnreg",
"extendedHelp" : "https://code.google.com/apis/console"
} ],
"message" : "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup."

【问题讨论】:

    标签: java android youtube-api


    【解决方案1】:

    当我使用这个应用程序时,它为我做了同样的事情,直到我注册。一旦我这样做了,错误就消失了。我认为应用程序中的密钥不起作用。

    project read me

    register your app

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-07-26
      • 1970-01-01
      • 1970-01-01
      • 2016-05-29
      • 2018-04-27
      • 2017-08-07
      • 1970-01-01
      相关资源
      最近更新 更多