Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Video 使用youtube api将youtube视频从私有更改为公共时,editLink为空_Video_Youtube Api_Gdata - Fatal编程技术网

Video 使用youtube api将youtube视频从私有更改为公共时,editLink为空

Video 使用youtube api将youtube视频从私有更改为公共时,editLink为空,video,youtube-api,gdata,Video,Youtube Api,Gdata,我正在尝试将youtube视频从私人更新为公共。但是我在回复中得到的editlink是空的 这是我的密码: // returns a youtube service GDataServiceGoogleYouTube *service = [self youtubeService]; [service setAuthToken:[self getRequestToken]]; NSURL *url = [NSURL URLWithString:[NSString stringWithForma

我正在尝试将youtube视频从私人更新为公共。但是我在回复中得到的editlink是空的

这是我的密码:

// 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]为空

我认为只有来自的视频条目才是可编辑的。因此,您希望使用以下URL模式:

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