【问题标题】:editLink is null when using youtube api to change a youtube video from private to public使用 youtube api 将 youtube 视频从私有更改为公共时,editLink 为空
【发布时间】:2012-09-17 12:22:11
【问题描述】:

我正在尝试将 youtube 视频从私人更新为公开。但是我得到的编辑链接是空的。

这是我的代码:

// returns a youtube service
GDataServiceGoogleYouTube *service = [self youtubeService];
[service setAuthToken:[self getRequestToken]];

NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"https://gdata.youtube.com/feeds/api/videos/%@?v=2&key=%@", youtube_id, DEVELOPER_KEY]];
GDataServiceTicket *ticket;
ticket = [service fetchFeedWithURL:url delegate:self didFinishSelector:@selector(didFinishFetchingVideo:withEntry:error:)];

在回调中,[videoEntry editLink] 为空。

【问题讨论】:

    标签: video youtube-api gdata


    【解决方案1】:

    我相信只有来自uploads feed 的视频条目是可编辑的。因此,您需要使用以下 URL 模式:

    https://gdata.youtube.com/feeds/api/users/default/uploads/%@?v=2&key=%@

    【讨论】:

      猜你喜欢
      • 2012-04-19
      • 2023-04-03
      • 2016-10-01
      • 1970-01-01
      • 2018-03-14
      • 2021-05-22
      • 2021-03-22
      • 1970-01-01
      相关资源
      最近更新 更多