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 8529061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:56:38+00:00 2026-06-11T08:56:38+00:00

To upload vedio on you tube i am using Gdata sample code. Its working

  • 0

To upload vedio on you tube i am using Gdata sample code.

Its working fine as it is. But in my application I need to authenticate username and password of user before user try to upload video.

Can I do it with Gdata service ?

Thanks for any help.

  • 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-11T08:56:40+00:00Added an answer on June 11, 2026 at 8:56 am

    Below is method for client login in Youtube:

    - (BOOL)login:(NSString *)strusername password:(NSString *)strpassword
    {
       NSMutableURLRequest *request = [NSMutableURLRequest 
                                    requestWithURL:[NSURL URLWithString:@"https://www.google.com/accounts/ClientLogin"]];
    
       NSString *params = [[NSString alloc] initWithFormat:@"Email=%@&Passwd=%@&service=youtube&source=&continue=http://www.google.com/",username,password];
       [request setHTTPMethod:@"POST"];
       [request setHTTPBody:[params dataUsingEncoding:NSUTF8StringEncoding]];
       [params release];
       [request setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"Content-type"];
    
       NSHTTPURLResponse *response;
       NSError *error;
       [request setTimeoutInterval:120];
       NSData *replyData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error];    
    
       NSString *replyString = [[[NSString alloc] initWithData:replyData encoding:NSUTF8StringEncoding] autorelease];
       if([replyString rangeOfString:@"Auth="].location!=NSNotFound)
       {
        NSString *authToken=[[replyString componentsSeparatedByString:@"Auth="] objectAtIndex:1];
        NSLog(@"Auth : %@",authToken);
        return YES;
       }
       else
       {
        return NO;
       }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I upload image files using aspupload component. I was wondering if its possible to
I upload some video using Browser-based upload method. The video is uploaded fine, however
I'm trying to upload an application to the iPhone App Store, but I get
I am trying to upload an image on facebook. Using this code private void
Upload works fine for 62MB file. However, it throws exception if it is 100MB.
I upload my app to app store, I already build my apps using device
I upload a file using adobe air HTTPService.Send method by passing byte array of
To upload a file using inputType: 'file' , and for a form prescribed fileUpload:
I'm trying to upload images to a php file, everything works, but sometimes when
I need to upload my customized excel file in magento admin panel. This excel

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.