Objective c 我试图删除youtube视频,但它有;targetFeedReadOnly“;错误

Objective c 我试图删除youtube视频,但它有;targetFeedReadOnly“;错误,objective-c,youtube,youtube-api,gdata,gdata-api,Objective C,Youtube,Youtube Api,Gdata,Gdata Api,我在上面的代码中尝试了“targetFeedReadOnly”错误 我能做什么?检查您是否对此url发出“获取”请求,否则如果您使用“发布”或“放置”无效…库版本为2.0将“获取”更改为“发布”和“targetfeedreadonly”错误已解决,但删除视频无效。@user3159713您的问题已解决并接受答案。你有任何错误吗 NSString *devKey = [mDeveloperKeyField text]; GDataServiceGoogleYouTube *service = [s

我在上面的代码中尝试了
“targetFeedReadOnly”
错误


我能做什么?

检查您是否对此url发出“获取”请求,否则如果您使用“发布”或“放置”无效…

库版本为2.0将“获取”更改为“发布”和“targetfeedreadonly”错误已解决,但删除视频无效。@user3159713您的问题已解决并接受答案。你有任何错误吗
NSString *devKey = [mDeveloperKeyField text];
GDataServiceGoogleYouTube *service = [self youTubeService];
[service setYouTubeDeveloperKey:devKey];
[service setUserCredentialsWithUsername:(yotube e-mail account) password:(password)];

NSLog(@"%@",service.username);

NSURL *url = [GDataServiceGoogleYouTube youTubeURLForFeedID:nil];
NSLog(@"%@",url); //http://gdata.youtube.com/feeds/api/videos
NSString *urlString = [url absoluteString];
urlString = [NSString stringWithFormat:@"%@/%@",urlString,@"MooWz4o-NhE"];
[service deleteResourceURL:[NSURL URLWithString:urlString] ETag:nil delegate:nil didFinishSelector:nil];