0

我正在尝试将 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] 为空。

4

1 回答 1

0

我相信只有上传提要中的视频条目是可编辑的。因此,您需要使用以下 URL 模式:

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

于 2012-09-26T15:42:48.480 回答