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

  • Home
  • SEARCH
  • 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 3998808
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:34:26+00:00 2026-05-20T07:34:26+00:00

QUESTION Which of the Youtube Data API auth methods will allow me to upload

  • 0

QUESTION

Which of the Youtube Data API auth methods will allow me to upload videos to a single channel without having to force my site’s user to authenticate?

  1. OAuth
  2. AuthSub
  3. Client Login

I’ve read http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Authentication but am still unsure.

BACKGROUND

I’m building an application in Ruby on Rails which will require users to upload videos and associate them with an account within the application (not their youtube account).

I don’t need to associate the videos they upload with their youtube account, and it would be perfectly fine to have all the videos uploaded land in one youtube channel, similarly to how the Doritos Guru contest worked ( http://www.youtube.com/user/doritosguru )

So far as I can tell, I should only need to have access to a single youtube account, which I can create, and upload all the videos through this account. So far as youtube is concerned, this one user will own all the videos.

I’ve read through the different authentication options presented ( http://code.google.com/apis/youtube/2.0/developers_guide_protocol.html#Authentication ) but still am unsure which of these meets my needs.

Also, I’m looking for a ruby gem/rails plugin that will facilitate what I want to do.
I’m currently looking at http://github.com/edgarjs/youtube-model but don’t know if that will meet my needs.

Advice?

  • 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-05-20T07:34:27+00:00Added an answer on May 20, 2026 at 7:34 am

    You should use the ClientLogin method.
    For example, suppose you want to authenticate a YouTube account for which the username and password are testuser and testpassword, respectively. You can simulate the HTTP POST request using the Linux ‘curl’ command, as shown in the following example:

    curl \
      --location https://www.google.com/accounts/ClientLogin \
      --data 'Email=testuser&Passwd=testpw&service=youtube&source=Test' \
      --header 'Content-Type:application/x-www-form-urlencoded'
    

    If your authentication request is successful, the response to your request will have the following format. (Please note that the token values have been shortened in the example.)

    SID=DQAAALQAAAA6wx7byZp-s4BizDqS1OaT21j9dmY6wMjexpQdNC3
    LSID=DQAAALUAAAARH_PvRXoaz23Dv_UmOSUz2_0vh-4XbUedCN9XTZ
    Auth=DQAAALUAAAARH_PvRXoaz23Dv_UmOSUz2_jxJVCGjoulKlhWbU
    

    When you make an authenticated API request using a ClientLogin authentication token, your request needs to specify the Authorization HTTP request header as shown in the example below:

    Authorization: GoogleLogin auth=<authentication_token>
    X-GData-Key: key=<developer_key>
    

    Then you can use the token in the rest of your application, and lump all the uploaded content into one youtube username.

    As for gems, theres active-youtube, youtube_g and a few others, however I haven’t found any that really streamline the auth process. Most just allow you to query for top video feeds and stuff like that. A gem would make a good starting point though to build out the rest of your app. This completed upload script is a good starting point as well. Google’s Authentication Docs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may be a painfully simply question for which I will be mocked but
I have an embeded youtube video which I want the YouTube API applied. I
I saw a question which is asking designing algorithm for Post-order Tree Walk without
I'm working with the YouTube Data API per PHP and requesting a video feed
I'm accessing the feed of a user's favorite videos through the YouTube API. How
I'm creating a little web app to play videos. Data about the videos will
This question is related to another question which I asked yesterday! List all links
I know about this question: Which (third-party) debug visualizers for Visual Studio 2005/2008 do
I asked a question earlier which elicited some great responses. Here's the earlier question
This isn't a holy war, this isn't a question of which is better. What

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.