Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7780215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:50:06+00:00 2026-06-01T18:50:06+00:00

I have an iOS app that gets all the videos from a user through

  • 0

I have an iOS app that gets all the videos from a user through gdata and YouTube API. My problem comes with private videos, I need to make it so that it makes a private video public when the video is selected.

For some reason whenever I try to make the video public, I cannot edit it because the editLink of an entry returned by YouTube API is empty.

Here’s my code someone can tell me what I’m doing wrong or what I can do to make the change:

GDataEntryBase *entry = [[feed entries] objectAtIndex:selectedRow];
    [[(GDataEntryYouTubeVideo *)entry mediaGroup] setIsPrivate:NO];


//GDataEntryYouTubeUpload *uploadEntry = 
//[GDataEntryYouTubeUpload uploadEntryWithMediaGroup:mediaGroup
//fileHandle:nil MIMEType:@"video/mp4" slug:[[entry title]
//stringValue]];

    GDataServiceTicket *ticket;
    GDataServiceGoogleYouTube *service = [self youTubeService];

    NSString *str = [entry canEdit] ? @"YES" : @"NO";
    NSLog(@"Can edit %@", str);
    NSLog(@"Edit URL %@", [[entry editLink] URL] );

 //       NSURL *url = [GDataServiceGoogleYouTube
                         //youTubeUploadURLForUserID:kGDataServiceDefaultUser];
    ticket = [service fetchEntryByUpdatingEntry:entry
    forEntryURL:[[entry editLink] URL] delegate:self
    didFinishSelector:@selector(uploadTicket:finishedWithEntry:error:)];
 //     ticket = [service fetchEntryByUpdatingEntry:entry
    //delegate:self didFinishSelector:@selector(uploadTicket:finishedWithEntry:error:)];
    NSLog(@"Ticket = %@", ticket);
   }
}

- (void)uploadTicket:(GDataServiceTicket *)ticket
    finishedWithEntry:(GDataEntryYouTubeVideo *)videoEntry error:(NSError
    *)error {
      NSLog(@"Finished...");
         UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Upload
         failed" message:[NSString stringWithFormat:@"Upload failed: %@",
         error] delegate:self cancelButtonTitle:@"Cancel"
          otherButtonTitles:nil, nil];

        if (error != nil) {
             NSLog(@"Errors: %@", error);
            [alert show];
        } else {
            NSLog(@"NO ERRORS :))");
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T18:50:07+00:00Added an answer on June 1, 2026 at 6:50 pm

    I included developer key in the request/response shown below and received the editLink in the response. You will have to relate the protocol using the oauth playground to your client-side language.

    https://groups.google.com/group/youtube-api-gdata/browse_thread/thread/346eb7c8bdd6c3ae

    Did you authenticate your requests?

    Did you specify v=2?

    Did you include the developer key in the query?

    If your authenticated and using v=2 in the query string then you should get the edit link.

    Learn the dev tools at https://code.google.com/oauthplayground/ where i made the following request specifying partial gdata fields that would contain just the link[@rel=”edit”] tag :

    GET /feeds/api/users/default/uploads/7dtC4kS3x08?v=2&fields=link%5B%40rel%3D%22edit%22%5D&alt=json&key=${YT-devKeyValue} HTTP/1.1
    Host: gdata.youtube.com
    Authorization: OAuth ya29.AHES6ZSqIlhsyFfbzZ7x-PTVR1JiTj1PjPvBbfq7RtKnaJk
    

    Response includes editlink at the bottom – you should use the value of the attribute=href when you POST your update to the api:

    {
    "version":"1.0",
    "encoding":"UTF-8",
    "entry":{
    "xmlns":"http://www.w3.org/2005/Atom",
    "xmlns$yt":"http://gdata.youtube.com/schemas/2007",
    "link":[
    {
    "rel":"edit",
    "type":"application/atom+xml",
    "href":"https://gdata.youtube.com/feeds/api/users/rowntreerob/uploads/7dtC4kS3x08?v=2"
    }
    ]
    }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iOS app that displays content from a sqlite db in a
I working on a universal iOS app that gets news from an RSS feed.
I have an iOS app which gets some JSON from a server (in the
I have a Rails app that has 2 clients -- an iOS app reads/writes
I have an app on my iPhone that was built on iOS 5 and
I'm building an iOS app and I have all the functionality going already so
We have a need to capture signatures from an iOS app – the use
I have an app that runs on iPad and iPhone running iOS 3.2, but
I have an iOS app that posts to users FB feeds with a link,
Our iOS app has a Web View that is rendering pages from file: URLs.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.