Search code examples
objective-cyoutubeyoutube-apigdatagdata-api

i try to delete youtube video but it has "targetFeedReadOnly" error


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

I make an effort above code has "targetFeedReadOnly" error.

What can i do?


Solution

  • check that you make a "GET" request to this url else if you use "POST" or "PUT" did not work...