【问题标题】:i try to delete youtube video but it has "targetFeedReadOnly" error我尝试删除 youtube 视频,但出现“targetFeedReadOnly”错误
【发布时间】:2014-01-21 23:41:47
【问题描述】:
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"错误。

我能做什么?

【问题讨论】:

  • 库版本为2.0

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


【解决方案1】:

如果您使用“POST”或“PUT”不起作用,请检查您是否向此网址发出“GET”请求...

【讨论】:

  • 将“GET”更改为“POST”和“targetfeedreadonly”错误已解决,但删除视频不起作用..
  • @user3159713 您的问题已解决接受了答案。您遇到任何错误
猜你喜欢
  • 2017-07-12
  • 2020-11-03
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-12-15
  • 1970-01-01
  • 2015-05-28
  • 1970-01-01
相关资源
最近更新 更多