我尝试删除youtube视频,但它有“targetFeedReadOnly”错误

时间:2014-01-04 07:31:38

标签: objective-c youtube youtube-api gdata gdata-api

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];

我在代码上面做了"targetFeedReadOnly"错误。

我该怎么办?

1 个答案:

答案 0 :(得分:0)

如果使用“POST”或“PUT”无效,请检查您是否对此网址发出“GET”请求...